This file contains 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
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}' | |
# Remember replace USER with your username and REPO with your repository||application name! | |
git remote add origin [email protected]:USER/REPO.git | |
git push origin master |
This file contains 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
#Chrome | |
alias chrome="open -a Google\ Chrome\ Canary" |
This file contains 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
# Git command to update remote origin | |
git remote set-url origin [[*.git]] | |
git push origin --delete [branch-name] | |
# If you are working in a branch that is/will become a pull-request against master, you can rebase against your master branch. Make sure it is up to date | |
(my-branch)$ git rebase -i master | |
This file contains 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
# list all available versions: | |
$ rbenv install -l | |
# install a Ruby version: | |
$ rbenv install 2.0.0-p247 | |
# set/unset local | |
$ rbenv local 1.9.3-p327 | |
$ rbenv local --unset |
This file contains 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
rails g migration Add[*]And[#]To[TableName] *:string #:boolean | |
rails g migration Remove[*]From[TableName] *:integer | |
rake db:migrate | |
rake db:rollback | |
rake db:schema:dump | |
rake db:setup | |
# Migration commands | |
add_column |
This file contains 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
before_validation | |
after_validation | |
before_save | |
after_save | |
before_create | |
after_create | |
before_update |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
]$ git checkout feature-branch | |
]$ git rebase develop | |
]$ git checkout develop | |
]$ git merge feature-branch | |
This file contains 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
*Download the reference codebase* | |
$ git clone https://code.google.com/p/font-compression-reference/ | |
*Build the project* | |
cd font-compression-reference/woff2 | |
make clean all | |
*Run the tool over a given font* | |
$ ./woff2_compress telusdings.ttf |