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
var keyboard = [ | |
["q", "w", "e", "r", "t", "y"], | |
["a", "s", "d", "f", "g", "h"], | |
["z", "x", "c", "v", "b", "n"] | |
] | |
var flippedX = false; | |
var flippedY = false; | |
var shifted = 0; |
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
# this deletes all files that were deleted in a repo and that are tracked in git | |
git rm $(git ls-files --deleted) | |
# check out a new branch to track remote | |
git checkout -b branch_name origin/branch_name | |
# delete local branch with unmerged warning | |
git branch -d branch_name | |
# delete local branch without unmerged warning |
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
# install jade and stylus | |
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages | |
git clone https://github.com/miksago/jade-tmbundle.git Jade | |
git clone https://github.com/LearnBoost/stylus.git Stylus | |
# lowercase files in current directory | |
ls | while read upName; do loName=`echo "${upName}" | tr '[:upper:]' '[:lower:]'`; mv "$upName" "$loName"; done |