I hereby claim:
- I am jehna on github.
- I am jesseluoto (https://keybase.io/jesseluoto) on keybase.
- I have a public key whose fingerprint is 0298 F257 9340 D3C5 E187 6656 E636 6496 502E AC3F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
""" | |
# App Engine import data from Datastore Backup to localhost | |
You can use this script to import large(ish) App Engine Datastore backups to your localohst dev server. | |
## Getting backup files | |
Follow instructions from Greg Bayer's awesome article to fetch the App Engine backups: | |
http://gbayer.com/big-data/app-engine-datastore-how-to-efficiently-export-your-data/ |
ls -d */ | xargs -I {} echo "echo -n "{} ... "; cd \"{}\"; test -d .git && (git remote | head -n 1 | grep . || echo NO REMOTE) || echo NO GIT; cd ..;" | bash |
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
lg-any = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit db2f05cfb04b79f86b1b73f0133e3d9607c1de29\n8b7a77b008e5dd879620fd306cda259aa3c554f4\nc35449dab8898ece040eef9bcd42d27c2db4fac7\n14f9347e852e1d3446ca77548f323229227b463a\nd16c53e29206d0d84a9a7a4dd32eb33acf926cf9\n9ea1a9d3526c015b6616bf80726bbb9fb7f615a2\n338b88bf4961d30ea3af215baf13123c82ed434b\n5d8a104cda81eff30f2fab3f5022ce5eaf22102b\na67ffdc5cc2e5abcd34a22c30885eee10daf9cb2\n75a4a9119c90b714e2c4e63ddb5cde7556814b59\n5f62290f934645ee56d2192132bbac1f8dad025f\ndbbeea65ea48c0535099d6861ca10835cbb723d3\ncb814d26d807040a3d46cea4be6bf32ee1cae385\n8e4b09efad27564724b26f1536d14092ea4d2ce2\n9d642ce3e5bdb8a3102ded5a1983b8e3c021f87d\nf2c2452895c9bd697642b537c166355b4d028d5a\n0fe4fe75f8a1876b7641b195116928d4f96741d9\n96e26586c1acd4fdc507d1 |
# Check how much space you would save by removing all node_modules folders under this folder | |
find . -regex '.*/node_modules$' -type d | grep -v 'node_modules/' | xargs du -ch | tail -1 |
[class*="undefined"], | |
[class*="null"] { | |
border: red 5px solid !important; | |
background: #0f0 !important; | |
color: #00f !important; | |
} | |
[class*="undefined"]::after, | |
[class*="null"]::after { | |
content: "YOU HAVE AN ERROR IN YOUR CODE" !important; |
# Eanble developer mode for Android | |
# Enable USB debugging | |
# Connect phone to computer via USB | |
# Make sure you have Android developer tools installed | |
# Run from bash: | |
# Open shell connection to the phone | |
adb shell | |
# Remove Facebook crapware |
// Run with node --print-opt-code --allow-natives-syntax --print-code index.js | |
function plus(a, b) { | |
return a + b | |
} | |
plus(1, 2); | |
%OptimizeFunctionOnNextCall(plus); | |
plus(2, 1); |
export type SideEffect<Result> = { | |
commit: () => Promise<Result>; | |
rollback: () => Promise<any>; | |
}; | |
export async function saga<T>( | |
callback: ( | |
run: <Result>(sideEffect: SideEffect<Result>) => Promise<Result> | |
) => Promise<T> | |
): Promise<T> { |