Skip to content

Instantly share code, notes, and snippets.

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;
@odinecse
odinecse / git-shortcuts.txt
Last active December 16, 2015 17:19
Cool Git Shortcuts
# 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
@odinecse
odinecse / terminal_commands.txt
Last active December 10, 2015 16:59
Terminal commands to remember
# 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