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
/* promises */ | |
doSomething() | |
.then(doSomethingElse) | |
.catch(handleError); | |
/* await */ | |
let result; | |
try { | |
result = await doSomething(); | |
} catch (error) { |
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
#!/usr/bin/env sh | |
git checkout master | |
for BRANCH in $(git branch --merged | grep -v "*") | |
do | |
git branch -d $BRANCH | |
done | |
git remote prune origin |