20
In 2011, the Gaming Stack Exchange hosted an event called Hat Dash, where users earned "hats" for their gravatars by completing certain tasks (analogous to badges):
Certain actions would trigger the user receiving a hat, which their gravatar could then "wear". For example, editing a post would...