Github
Github is a platform for writing and sharing code, designed for collaborative work. “Gist” pages on Github are for publishing short pieces of code and its output. Here is an example of a gist.
Github made way for Gitbook, which similarly allows for collaborative writing.