From inside the forked repository, add a new remote
pointing to the upstream repository.
$ git remote add upstream git://github.com/upstream/repo.git
$ git pull upstream master
// found here http://forums.shopify.com/categories/2/posts/29259 | |
var getOrdinal = function(n) { | |
var s=["th","st","nd","rd"], | |
v=n%100; | |
return n+(s[(v-20)%10]||s[v]||s[0]); | |
} |