iOS device https://itunes.apple.com/app/apple-store/id1173368693?pt=118205173&ct=ihr2
Desktop/other:
| # run the appropriate package manager | |
| npm-etc() { | |
| if [[ -f package-lock.json ]]; then | |
| npm run "$@" | |
| elif [[ -f yarn.lock ]]; then | |
| yarn "$@" | |
| elif [[ -f pnpm-lock.yaml ]]; then | |
| pnpm "$@" | |
| else | |
| echo "Error: Could not detect package manager." |
| const WithFunc = { | |
| description: "Hello", | |
| classicFunction() { | |
| console.log(this.description, "description") // works but can lead to 'this' confusion | |
| return "classicFunction" | |
| } | |
| } | |
| const WithConst = { | |
| description: "Hello", |
iOS device https://itunes.apple.com/app/apple-store/id1173368693?pt=118205173&ct=ihr2
Desktop/other:
| @mixin inline-block { | |
| display: -moz-inline-stack; // ff 2 | |
| display: inline-block; | |
| zoom:1; *display: inline; _height: 15px; // ie 6-7 | |
| } |