Awesome sites to find useful code snippets

by Jean. 18 Comments -

As a developer, I really like to collect and keep a library of useful code snippets that allow me to save a lot of time when building websites or apps. Today, I have compiled a list of the most interesting websites to find useful code snippets.

CatsWhoCode snippet library


Some of you already know it, but a few weeks ago I’ve created a snippet library with a picky selection of usefull snippets focused on web development: PHP, JavaScript, CSS, htaccess… Approximately one new snippet is published every day. Users are welcome to submit their own snippets.
→ Visit CatsWhoCode snippet library

Snipplr


Snipplr is probably the largest code snippet repository available on the internet. Since 5 years, they have published thousand of pieces of code. Some snippets are super useful, some other not so, but there’s a strong chance that you’ll find what you need on a website with so many snippets.
→ Visit Snipplr

WPRecipes


Another site of mine, where I publish only WordPress related snippets since 2009. More than 300 snippets are available, so don’t miss it if you work with WordPress!
→ Visit WPRecipes

PHP Snips


Are you into PHP? If yes, you’ll for sure love PHP Snips, a PHP-only code snippets library. Hundreds of snippets are freely available, most of them are very useful and well coded.
→ Visit PHP Snips

DZone code snippets


DZone Snippets is a public source code repository, hosted by popular developer website DZone. Thousands of snippets in more than 25 languages are available. As it is 100% user powered, quality is very mixed: some snippets are useful and well coded while some other are a complete waste of time.
→ Visit DZone code snippets

Jonas John snippet library


Currently 143 quality code snippets, covering PHP, C#, Visual Basic, JavaScript, and more. A good resource to keep in your bookmarks!
→ Visit Jonas John snippet library

Code Beach


Code Beach is a central repository where Mac developers can share pieces of useful code in all programming languages used on Mac: Objective C, Ruby, C, C++, Python… Don’t miss it if you’re a Mac developper!
→ Visit Code Beach

CodeKeep


With more than 18,000 code snippets, there’s a strong change that you’ll find what you need on CodeKeep. The site have compiled snippets in various languages such as C#, C++, ActionScript, ASP, VB and more.
→ Visit CodeKeep

Code Codex


Using the poipular wiki formula, Code Codex is a website where you can find and add lots of snippets in languages like C, C++, Java, Perl, and more.
→ Visit Code Codex

  • tomByrer

    Nice list! Also if you don’t mind searching/digging:
    https://gist.github.com/gists
    google~site:jsfiddle.net

  • http://luka.muzinic.net Luka Muzinic

    Great list!

    BTW, it appears that you have a typo in URL for wprecipes.com ;-)

  • http://wpreader.com Anton

    hi jean, there is a problem with one of the links on your article. check the link for ‘Visit WPRecipes’. there is an extra ‘e’ in the url

    anton

  • http://www.rosenthal-law.net Jason

    This is so helpful. I’m not a great PHP coder, so I love finding scripts that are already created! Maybe a few tweaks here and there, and you’re all set! Thank you for providing this list.

  • Batfan

    You forgot one :)

    http://snipt.net/

  • http://websyntax.blogspot.com faltech

    great list you have there!

  • http://www.siamcomm.com Eric Buckley

    This is a very helpful list. I have used a couple of these site in the past.

    Another site I like is CSS Tricks … http://css-tricks.com/snippets/

  • http://southcast.in/ Yami Gautam

    Well, I am subscribed to WPRecipes since quite some time now and have been able to tweak my business site quite a bit. I guess its time now to check out these other new resources. Thanks Guys.

  • http://www.wpsquare.com Bharat Chowdary

    Great list, happy to see WPRecipes in it :)

  • http://customwordpresstheme.co.uk/ Gytis

    how many blogs you have? :)

  • Mass01

    Chris Coyier (CSS-Tricks) has just released http://codepen.io

  • http://andrewchamp.com/ Andrew Champ

    How about http://codesnipp.it/

  • http://dieselgeneratorsnepal.com Priya

    I am a web developer who is looking for easy tips and tricks which obviously ease my job. This post is really helpful in that aspect. Thank You :)

  • http://www.ljpc.nl Lars Jansen

    What about http://www.supersnippets.com ?

  • http://searchcode.com/ Ben Boyter

    Another one to consider is http://searchcode.com/ which performs search over GitHub, BitBucket, Codeplex etc….

  • Mittul Chauhan

    codekeep is my fav .. happy to see in this list :)

    thanks for all these.

  • http://www.codegeekz.com Gavin

    check out some amazing http://codegeekz.com/25-code-snippet-resources-and-repositories-for-developers/ code snippet resources and repositories here.

  • Christian Moser

    My favorite is www.snippetsource.net
    It’s a relatively new site, but well structured.