This file contains hidden or 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
// jestdescr | |
// Inserts describe() block | |
describe('$NAME$', function() { | |
$END$ | |
}); |
This file contains hidden or 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
// open the dev environment | |
// https://stephengrider.github.io/JSPlaygrounds/ | |
// create reducer (function) | |
const reducer = (state = [], action) => { | |
if (action.type === 'SPLIT_STRING') { | |
return action.payload.split(''); | |
} else if (action.type === 'ADD_CARACTER') { | |
// DO NOT MUTATE DATA IN A REDUCER | |
//state.push(action.payload); |
This file contains hidden or 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
#!/bin/bash | |
# install wget, virtualbox and vagrant | |
brew install wget | |
# enable in mac preferences to run oracle vm: https://developer.apple.com/library/content/technotes/tn2459/_index.html | |
brew cask install --force virtualbox | |
brew cask install vagrant | |
brew cask install vagrant-manager | |
# get a fresh Ubuntu 14.04 machine running and create a Vagrantfile |
This file contains hidden or 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
# show the history ------------------------------------------------------------------- | |
git hist | |
# check differences between 2 commits | |
git difftool <id> HEAD | |
# modify a file | |
mate README.md | |
git diff |