from Hacker News

Ask HN: What do you use to store code snippets from around the web?

by strimp099 on 1/23/21, 10:37 PM with 6 comments

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.
  • by Pm359 on 1/24/21, 1:55 PM

    Obsidian (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) out of it.
  • by moxylush on 1/23/21, 11:02 PM

    Github 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/

  • by andrefuchs on 1/24/21, 9:33 AM

    I 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/
  • by cercatrova on 1/24/21, 4:30 PM

    I don't. Do people do this regularly?