Note this is just me re-publishing code I found

in the gource wiki :)

https://code.google.com/p/gource/wiki/GravatarExample