I have just started using a great web site to save code snippets. www.snipplr.com allows you to save code to share with others and/or to save in a handy location so you can reuse it as needed. When you add a new snippet to Snipplr.com, you can add a title, language, tags, URL and comments, in addition to the source code. You can also choose to keep the code private. If you create a temporary snippet for showing a friend your code, the snippet will expire in 24 hours.
Considering that the "e" is missing from the domain name (www.snipplr.com), you know it has some web 2.0/social networking goodness. With Snipplr, you can add other user's snippets as favorites, comment on snippets, add users to a watch list and subscribe to all kinds of RSS feeds! Any good web2.0 app has an API and Snipplr is no exception. Check out the details on the Snipplr API here: http://snipplr.com/developer/api/.
As a TextMate user, I was stoked to find out that there is a Textmate bundle allowing you to search and post snippets from TextMate!. Check it out here: http://snipplr.com/developer/textmate/.
If you want an easy way to collect code for reuse or to share code easily, give Snipplr.com a spin!
You can check out my code snippets at http://snipplr.com/users/shrop/.