25 Useful Code Snippet Repositories and Resources
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 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.
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.
A collection of code snippets for web developers, including code for HTML, CSS, JavaScript, PHP, WordPress, jQuery, HTAccess, and more!
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.
Server Fault is a question and answer site for professional system and network administrators. It’s 100% free, no registration required.
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.
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 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.
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.
Another collection of 176 Ruby and Ruby on Rails snippets and packages.
“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.â€
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.
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.
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#.
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.
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.
List of pages with code snippets. Browse around, you might learn something new.
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.
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: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).
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.
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.
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