Update April 30, 2014
Unfortunately snipt.net is no longer offering free accounts. An alternative is GitHub Gist.
Recently I have discovered snipt.net, whose tagline is “the long term memory for coders“. You can add snippets here for/from various programming languages and publish it (or just store it for yourself if you don’t want to make it public).
A great site to store your important snippets in the cloud! You can check it out at www.snipt.net.