I would suggest the following:
For code snippets use Gist gist.github.com ( It has syntax coloring, it's fast and reliabe, you can create secret gists)
And for storing source code files you can just use the plain GitHub functionality.
Hope this helps,
Alex S.