One of the best reasons to use Code Snippet tools is that they save you lots of time when creating a website. When you have many CSS3, HTML5, Javascript and PHP bits hanging around in your computer it’s difficult to remember when you start a new project. Online Code Snippet Repositories and Resources can really speed up your web development whether you reuse your own snippets or turn to the many online resources.

There are countless online Code Snippet Repositories and Resources to find answers to your coding queries. In this post we’ve gathered 25 Useful Code Snippet Repositories and Resources. These Code Snippet websites let you upload your own snippets or help you find inspiration when trying to find the best approach for an area of your web development project.

 

Snipt

Snipt is a code repository that allows you to save public or private snippets. There are snippets available in just about every programming language and web technology you could ask for. Some of the snippets are incredibly useful, such as prebuilt HTML test pages for creating your CSS.

code-snippet-tool-024

Dev Tools Snippets

A collection of helpful snippets to use inside of browser devtools. If you have a useful snippet or updates to an existing one that you’d like to share, please contribute it or open an issue! Feel free to use, modify, or share any of these snippets.

code-snippet-tool-017

CSS Tricks – Code Snippets

A collection of code snippets for web developers, including code for HTML, CSS, JavaScript, PHP, WordPress, jQuery, HTAccess, and more!

code-snippet-tool-018

Dev Snippets

DevSnippets is an online snippet gallery that provides snippets as well as useful development articles for a variety of platforms and languages. Snippets are located off-site, generally on the blogs of their respective creators.

code-snippet-tool-016

Server Fault

code-snippet-tool-015

Server Fault is a question and answer site for professional system and network administrators. It’s 100% free, no registration required.

Code Sucks Code Snippets

Code Sucks offers a collection of CSS, JavaScript and PHP code snippets. There aren’t a huge number of snippets included, but those listed are useful and easy to understand.

code-snippet-tool-014

Snipt

code-snippet-tool-025

Snipt lets you store and then share your code snippets on Twitter and elsewhere. You can also search the Snipt repository or download the Snipt desktop app.

 

Snipplr

Snipplr is a code snippet search engine. It’s a way for you to keep your code snippets organized and easily accessible from any computer. It includes snippets in JavaScript, HTML, PHP, CSS, Ruby and Objective C.

code-snippet-tool-002

DotNetSlackers

DotNetSlackers is community and forum dedicated to ASP.NET. They also have a code repository that includes a wide variety of snippets in MS-based coding languages.

code-snippet-tool-003

RubyForge Snippets

Another collection of 176 Ruby and Ruby on Rails snippets and packages.

code-snippet-tool-004

BytemyCode

“byteMyCode is a project designed to make the task of sharing source code easier. We have modeled a community around making it easy to find, share, revise, comment on, and rate code snippets.”

code-snippet-tool-005

SWT Snippets

This is a huge repository of snippets for SWT (The Standard Widget Toolkit). Code includes snippets related to accessibility, browser functions, cursors, display, grid layouts, and more.

code-snippet-tool-006

Snippets Mania

Organize and share your code snippets. Snippetsmania is a free accessible collection of code snippets. It currently supports 34 different programming languages. The database holds a total count of 99 code and programming snippets and examples.

code-snippet-tool-007

Code Project

The Code Project has nearly 24,000 development and design articles, code snippets, and other resources available. It focuses on Microsoft-based and related languages like ASP.NET and C#.

code-snippet-tool-008

PHP Classes

This is a PHP code repository that lets you search PHP Class Scripts, tutorials, and more. There are a huge number of scripts and snippets covering almost any aspect of PHP coding included. The site is mirrored all over the world and does require that you select a mirror before browsing.

code-snippet-tool-009

10 Code Snippets for PHP Developers

Here’s a small list of some useful code snippets which might help you when writing your PHP scripts.

code-snippet-tool-010

Grease Spot: Code Snippets

List of pages with code snippets. Browse around, you might learn something new.

code-snippet-tool-011

PHP Code Snippets

PHP Snippets is a repository of PHP code that you can browse by letter or based on function or class. You can also browse new and highly rated snippets.

code-snippet-tool-012

Smipple

Smipple is a social service for saving, storing, organizing, and sharing snippets of code with your friends and coworkers. Make friends. Improve your coding skills. Earn bragging rights.

code-snippet-tool-013

Code Keep

Code:Keep is a repository of nearly 15,000 snippets in just about every language out there. You can browse or search, or even look up code based on an author’s email address (great for finding your own contributed code).

code-snippet-tool-019

Codase

Codase is a syntax-aware code search engine that understands code and, therefore, performs more accurate searches. There are currently more than 250 million lines of code in its repository.

code-snippet-tool-020

Krugle

Krugle is a search engine that allows computer programmers and other developers to search Open Source repositories to locate open source code, and quickly share the code with other programmers on the internet.

code-snippet-tool-021

DZone Snippets

DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

code-snippet-tool-022
Koders is a code repository with nearly 2.5 billion lines of open source code. The search engine they use is very powerful and allows you search based on a variety of different criteria, including by class, method, interface, and more.
code-snippet-tool-023
[mashshare]