| yarn run v1.9.2 | |
| $ prettier '**/*.{js,jsx,json,css,scss,less,md,ts,tsx}' --write | |
| __mocks__/fileMock.js 30ms | |
| __mocks__/mocks.js 9ms | |
| __mocks__/styleMock.js 4ms | |
| .stylelintrc.js 5ms | |
| app/FakeRouting.ts 213ms | |
| app/src/common/actionCreators/accessToken.ts 13ms | |
| app/src/common/actionCreators/config.ts 7ms | |
| app/src/common/actionCreators/requestsTimestamp.ts 7ms |
| [alias] | |
| tracking = "!f() { git for-each-ref --format '%(refname:short):%(upstream:short)' 'refs/heads' | grep -Ev ':$'; }; f" | |
| is-clean-workdir = "!f() { git diff --stat --exit-code || { echo \"Workdir dirty\"; exit 1; }; }; f" | |
| is-clean-index = "!f() { git diff --stat --cached --exit-code || { echo \"Index dirty\"; exit 2; }; }; f" | |
| is-clean = "!f() { git is-clean-workdir && git is-clean-index; }; f" | |
| co-merge = "!f() { local=\"$1\"; remote=\"$2\"; git checkout \"$local\"; git merge --ff-only \"$remote\"; }; f" | |
| current-branch = rev-parse --abbrev-ref HEAD | |
| sync = "!f() { git stash push -u -m AUTO_STASH && git is-clean || { echo Aborting sync.; exit 1; }; current=$(git current-branch); git fetch --all; git tracking | while IFS=: read local remote; do echo \"Merging $local with $remote\"; git co-merge \"$local\" \"$remote\"; done 3>&1 1>&2 2>&3 | grep -iE --color 'fatal|$' 3>&1 1>&2 2>&3; git checkout \"$current\"; git stash pop; }; f" |
| #!/usr/bin/env bash | |
| I="\e[96m" | |
| E="\e[90m" | |
| echo -e "🤖$I starting sync.. $E"; | |
| CURRENT_BRANCH="`git rev-parse --abbrev-ref HEAD`" | |
| STASH_RESULT="`git stash push -u -m AUTO_STASH | grep Saved`" | |
| if [ -n "$STASH_RESULT" ]; then |
defaults read com.apple.ncprefs.plist dnd_prefs
turn on:
defaults write com.apple.ncprefs.plist dnd_prefs -data 62706C6973743030D60102030405060708080A08085B646E644D6972726F7265645F100F646E64446973706C6179536C6565705F101E72657065617465644661636574696D6543616C6C73427265616B73444E445875736572507265665E646E64446973706C61794C6F636B5F10136661636574696D6543616E427265616B444E44090808D30B0C0D070F1057656E61626C6564546461746556726561736F6E093341C2B41C4FC9D3891001080808152133545D6C828384858C9499A0A1AAACAD00000000000001010000000000000013000000000000000000000000000000AE
turn off:
defaults write com.apple.ncprefs.plist dnd_prefs -data 62706C6973743030D5010203040506070707075B646E644D6972726F7265645F100F646E64446973706C6179536C6565705F101E72657065617465644661636574696D6543616C6C73427265616B73444E445E646E64446973706C61794C6F636B5F10136661636574696D6543616E427265616B444E44090808080808131F3152617778797A7B0000000000000101000000000000000B0000000000000000000000000000007C
| ┈┈┈┈┈┈▕▔╲ | |
| ┈┈┈┈┈┈┈▏▕ | |
| ┈┈┈┈┈┈┈▏▕▂▂▂ | |
| ▂▂▂▂▂▂╱┈▕▂▂▂▏ | |
| ▉▉▉▉▉┈┈┈▕▂▂▂▏ | |
| ▉▉▉▉▉┈┈┈▕▂▂▂▏ | |
| ▔▔▔▔▔▔╲▂▕▂▂▂I | |
| //test |
| //////////////////////////////////////////////////////////////////////////////// | |
| // Booleans | |
| //////////////////////////////////////////////////////////////////////////////// | |
| const trueOrFalse: boolean = true; | |
| // trueOrFalse = 3 | |
| // TS is smart, no need to type EVERYTHING! | |
| const alsoTrueOrFalse = true; | |
| // alsoTrueOrFalse = 3 |
| Object.keys(window).forEach((key) => { | |
| if (/^on/.test(key)) { | |
| const name = key.slice(2); | |
| console.log(name); | |
| window.addEventListener(name, (event) => { | |
| const tag = event[Symbol.toStringTag]; | |
| // exclude noisy ones | |
| if (!['TransitionEvent', 'MouseEvent', 'PointerEvent', 'AnimationEvent'].includes(tag)) { | |
| console.log(event); |
| "use strict"; | |
| var __create = Object.create; | |
| var __defProp = Object.defineProperty; | |
| var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
| var __getOwnPropNames = Object.getOwnPropertyNames; | |
| var __getProtoOf = Object.getPrototypeOf; | |
| var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| var __esm = (fn, res) => | |
| function __init() { | |
| return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])((fn = 0))), res; |
