I've needed this for myself. I have hundreds, possibly thousands, of snippets of code scattered around my machines, all doing small bits of something. But instead of being able to find the snippet I end up googling around for 10 minutes an re-writing the snippets.
Part of the issue is that some are a snippet, but some are a few folders with a Makefile and some input data etc etc. So maybe I need a meta-snippet format for managing all of this
I've been learning SFML and the lack of direct code examples has been infuriating. Resources are explained in English (so paragraphs when a few lines of code would suffice), and the forums are 2/3 full of arrogant "we're not going to help you, just read the reference" posts, and are mostly outdated.
All I want(ed) to see is small code snippets for e.g. "get mouse position in map coordinates", "display text on the screen", "zoom on mouse position", "get mouse position in window/view coordinates", "create a gui box and determine size by text and center the text", "how to zoom without graphical glitches"