add these lines to .bashrc .zshrc or .bash_profile
alias branch='git symbolic-ref --short HEAD'
alias upstream='git push --set-upstream origin $(echo $(branch))'
{ | |
"cmd": ["/Users/<username>/.nvm/versions/node/v9.2.0/bin/babel-node $file"], | |
"shell": true, | |
"selector": "*.js" | |
} |
alias cleanxcode="rm -r ~/Library/Developer/Xcode/DerivedData && rm -r ~/Library/Developer/Xcode/Archives && echo 'xcode cleaned'" |
osascript -e 'tell application "iOS Simulator" to quit' | |
osascript -e 'tell application "Simulator" to quit' | |
xcrun simctl erase all |
@interface NSObject (Debounce) | |
- (void)debounce:(SEL)action delay:(NSTimeInterval)delay target:(id)target; | |
@end |
########################################## | |
# | |
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
# | |
# Version 2.82 | |
# | |
# Latest Change: | |
# - MORE tweaks to get the iOS 10+ and 9- working | |
# - Support iOS 10+ | |
# - Corrected typo for iOS 1-10+ (thanks @stuikomma) |
brew list > brew-list.txt | |
brew uninstall $(cat brew-list.txt) | |
brew install $(cat brew-list.txt) |
PACKAGE_VERSION=$(cat package.json | grep '"version":' | awk -F: '{ print $2 }' | sed 's/[",]//g' | sed 's/[ ,]//g') |
git clone $@ && cd `echo $@ | sed "s/.git//g" | sed "s/.*\///g"` && rm -rf .git && git init |
$ touch circleci.sh
$ vim circleci.sh
i