You can share snippets on any platform using either github snippets or an html/js code formatter like https://code.google.com/p/google-code-prettify/downloads/lis....
Rather than host your own, I prefer just going with tumblr or something slick. I do like tumblr for its social connectedness, easy sharing and liking. Whatever floats your boat, though.