First started for Javascript, a project to collect useful pieces of code (aka snippets). All these snippets have in common that any programmer can understand the code in 30 seconds (or less!).
There are now are many new initiatives to collect snippets for other programming languages. Here is a curated list of code snippets lists.
Get a full fake REST API with zero coding in less than 30 seconds
- text editor - How to import Javascript snippets in your own text editor?
- snibox - How to create your own snippet collection?
If your on linux you can also check cheat.sh