In case you wanted the original source https://gist.github.com/haschek/2595796