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/