Skip to content

Instantly share code, notes, and snippets.

@caseypugh
caseypugh / easy-git.rdoc
Created June 18, 2012 15:51
GIT MADE EASY

Install jamiew’s git-friendly: github.com/jamiew/git-friendly

Some common shorthands I use - type these into your terminal

git config --global alias.st "status -s"
git config --global alias.ca "commit -a -m"

Checkout new repo

git clone git@github.com:vhx/watchlater
@necolas
necolas / snippet.js
Created June 14, 2011 20:36
Optimised async loading of cross-domain scripts
/*
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/
* Better handling of scripts without supplied ids.
*
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function.
*/
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],