views:

568

answers:

9

Do you use any public websites for code-snippets? If so, can you let me know which ones you would recommend?

Clarification

I'm not looking for anything specific to a particular language, as suggested below - I work with a few different languages so I need something fairly general. I've just found www.snippler.com that seems like a good example of what I'm looking for - a public repository of useful, commonly created snippets. Any more suggestions?

+1  A: 

Paste();

spoulson
rafb.net/paste has been discontinued - May 25, 2009
webwesen
Sad. However, the site owner did a great deed and released the site code as open source: http://code.google.com/p/rafb-nopaste/
spoulson
A: 

These questions have lots of good information on snippets.

Mark Biek
+4  A: 

gist-hub - just awesome. Good highlighting and even versioning!

Mo
Not exactly what I was looking for(see my answer below), but looks pretty useful, thanks for the heads-up.
Sam Murray-Sutton
A: 

< shameless PLUG>I am currently build a site just or these 'Snipz'< /shameless plug>
I'm mostly a 'reinvent-the-wheel' kinda guy, but when I do need something I will head to SF, Google, then onto hotscripts.com

Unkwntech
A: 

@Juan - Thanks for replying to my question. Whilst that answer has some use, I was really just trying to more general recommendations for snippet websites.

Sam Murray-Sutton
A: 

Not for VS, but for Delphi, delphi.about.com often has snippets to do interesting things.

JosephStyons
+2  A: 

Google, lol.

Sara Chipps
+4  A: 

http://snippets.dzone.com/ is my favorite. very good syntax highlight, lots of languages, tagging + more.

webwesen
Thanks, I like the look of that site
Sam Murray-Sutton
I've actually had time to use it, I think it's probably the best of these type I've come across. Thanks for finding that.
Sam Murray-Sutton
A: 

I'd add snipplr.com to the list. It has a separate description so you can say something about the context of the snippet, lots of languages of course, and tags so I can do things like list all snippets related to a particular module or library.

cyberhobo