5 ms·
Ask HN: What do you use to store code snippets from around the web?
Web based, free, with the ability to add comments for context and organize into projects. For example I would track different code snippets relevant for different projects.
- moxylush 6y agoGithub Gists are good. They are discoverable, can be made private or public. They can be forked, stared and linked too. I've also been publishing "emerging tech" snippets on my blog. They appear on a carousel on the bottom of the home page. This is good to showcase expertise in a particular language or framework. https://thescottkrause.com/ https://thescottkrause.com/
- pharzan 6y agothe sound effects :D
- andrefuchs 6y agoI can recommend Cockpit CMS if you want to build your own selfhosted knowledge base. Here is a great tutorial to get started: https://willbrowning.me/category/cockpit/ https://willbrowning.me/category/cockpit/
- Pm359 6y agoObsidian (https://obsidian.md/ https://obsidian.md/) might help you with that. It uses Markdown and you can tag your coding snippets and make a knowledge graph (https://en.wikipedia.org/wiki/Knowledge_graph https://en.wikipedia.org/wiki/Knowledge_graph) out of it.
- cercatrova 6y agoI don't. Do people do this regularly?
- dusted 6y agoFirst time I've heard about it, other than that one time I saw someone (a senior to me) look up the syntax for a for loop :s