Github Repo Gist
This project imitates the Gist functionality provided by github but with a little twist, it works for repository source files.
View Demo · Report Bug · Request Feature
Index
Github Repo Gist
Github provides you with the functionality to make and embed a gist anywhere on the internet, but there's something missing, what if we want to share a gist of code from existing repo without the need of creating a new gist for it?
This is where this code comes in.
How to use it
There are few simple steps to get gist out of code -
- Get the
uri
to theraw
file, for eghttps://raw.githubusercontent.com/thefallenmerc/git-repo-gist/master/app.js
- extract the part starting from your username till end, (everything after
https://raw.githubusercontent.com/
), we getthefallenmerc/git-repo-gist/master/app.js
- Append this to our base url with any of the option available in between…