It is annoying to search for specific code snippets again and again and we do not like it. Always the same Stack Overflow posts that you read? That is not a good workflow so that was the reason for creating sn1ppet. A clean snippet viewer with nice functionalities built with Jekyll and hosted by GitHub ❤️. We are not trying to reinvent the wheel, we only needed a fast way to find snippets.
We prepared a demo for showing you the functionalities of a snippet.
- Create snippets via Markdown files
- Search on all pages by just typing the term
- Snippet listing by post date
- Category listing
- Embed Can I use support widget easily
- JSFiddle support
- MathJax integrated
- Snippet code as highlighted code or inserted in Ace editor
You can find Drupal, CSS, JavaScript and Git related snippets. For sure the amount of categories is growing but we will not add every proposed category.
Even if you want to have all your snippets there just fork this repository. People already mentioned that you can use this setup of website for other things like a styleguide or tiny wiki. Be creative :)
Do you want to submit a great snippet? Check out the contributing page.