This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const gt = x => y => x > y; | |
const lt = x => y => x < y; | |
const or = x => y => x || y; | |
const and = x => y => x && y; | |
const type = x => typeof x; | |
// like type('foo') => 'string'; | |
// like type(undefined) => 'undefined'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const loadImage = async src => await new Promise((resolve, reject) => Object.assign(img = new Image(), { src, onload: () => resolve(img), onerror: reject })) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/.git-completion.bash ]; then | |
source ~/.git-completion.bash | |
fi | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" |