I have published an InfoQ news post about Atlassian's efforts to provide a collaboration oriented code snippet sharing solution for teams:
Atlassian's popular source code hosting site Bitbucket launched Snippets for teams, a collaboration oriented solution to "create and manage multi-file snippets of all kinds". Snippets can be created via drag and drop, owned by a user or a team and optionally shared publicly. They are backed by Git or Mercurial repositories and can be managed via a REST API.
Continue reading the full post in Bitbucket Launches Snippets for Teams.