Allows you to embed code samples directly from GitHub, BitBucket or GitLab.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app/controllers
static
.gitignore
Procfile
README.md
app.js
index.html
local-test.html
package.json
test.html

README.md

Git Snippet

The goal of this is to allow you to embed code samples into your webpages straight from your github account the same way you can from github gists. You can use your own server and deploy this code or you can use the Gitsnippet.com server.

Read the docs for usage information.

Getting Started

  1. Run npm install
  2. Run npm start
  3. Get a raw content URL from git. Include the commit because your URL will be cached to prevent overloading Github's servers.
  4. visit localhost:8000/test.html to see an example of this in action.

Development

Everything is cached to a cache directory.

Deployment

Deployment is pretty simple. Deploy with whatever you want. Just set an Environment variable named PORT and set it to 80.

Contributing

If anyone cares enough to contribute, I'll populate this... lol

DISCLAIMER

We are in no way affiliated with Github.com. USE AT YOUR OWN RISK.

LICENSE

MIT