[http://en.wikipedia.org/wiki/Snippet_(programming) Code snippets] have been around for a very long time. One of the great features of [[File:Allaire homesite.jpg|right]] Allaire HomeSite was that it allowed you to save code snippets for later use. These days there are entire websites devoted to code snippets. Here are some of them:
# http://www.webmonkey.com/code-snippets/ Webmonkey, because it's an original.
# github.com "gists" https://github.com/search?q=gists