(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| If you are facing an error like that on new MacOS version. | |
| xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun | |
| It means that you need to install XCode command line, open a Terminal and run this command: | |
| $ xcode-select --install | |
| Note: | |
| If you want to download and install Command Line tools manually, it can be downloaded from: https://developer.apple.com/download/more/ |
| sudo curl -o /usr/local/bin/imgcat -O https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat && sudo chmod +x /usr/local/bin/imgcat | |
| # If you have a better way to fix the permissions, comment below! |
| [alias] | |
| co = !"find_and_checkout_branch(){\ | |
| for last; do true; done ; \ | |
| pattern='^/.*/$' ;\ | |
| if [[ $# -eq 1 && $last =~ $pattern ]] ;\ | |
| then \ | |
| branch_pattern=`echo $last | sed -e 's/^\\///' -e 's/\\/$//'` ;\ | |
| branch=`git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/ | grep -E $branch_pattern | head -n1` ;\ | |
| if [[ $branch ]] ; then \ | |
| git checkout $branch ;\ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.