jist.in is a JavaScript experiment/showcase that renders the contents of GitHub Gists entirely by client-side JavaScript.
The idea originates from gist.io and bl.ocks.org.
http://jist.in/5855373
displays the contents of the gist with id5855373
http://username.jist.in/5855373
verifies the owner of the gisthttp://username.jist.in/tagname/
shows a list about all gists with[tagname]
as the beginnings of gist descriptionshttp://username.jist.in/
will be redirected tohttp://username.jist.in/blog/
You can download the source code and open it from local file paths without web server support.
file:///path/jist.html?id=5855373
is the same ashttp://jist.in/5855373
file:///path/jist.html?user=username&tag=blog
displays user's blog post list
You can have multiple Markdown files in one gist. They are sorted according to their file names, so you can add numeric prefixes to file names to make them displayed in order.
Add a CSS file custom.css
, and it will be automatically append to head before gist contents are loaded.
Please use at your own risk.
The custom JavaScript only works on users' sub-domains, such as http://zhuzhuor.jist.in/5855373
.
Add a JavaScript file custom.js
, and it will be executed after other files are loaded.
Please use at your own risk as well.
The HTML files are put into seamless iframes, and they are sorted together with Markdown files.
HTML files are also only parsed under users' sub-domains.
Enclose your LaTeX contents by $...$
and they will be processed automatically.
- Change the CNAME setting of your custom domain to
cname.jist.in
. - Modify the TXT record of your custom domain to the forms like
id=5855373
oruser=username&tag=blog
.
The corresponding DNS records will be automatically retrieved via jsondns, and the targeted gist contents will be displayed accordingly.
This barely serves as an experiment. Please do not rely on it for long-term usage, since this functionality requires a self-hosted reverse proxy server (currently running on a tiny VPS host of $15/year).
It is recommended to upload jist.html and necessary files to your own servers, such as AWS S3 or GitHub Pages. You can modify the variables in the header of jist.html to pass the jsondns look-up process.
- Bootswatch Readable -- CSS style for legibility
- head.js -- loading JavaScript libs faster
- marked.js -- parsing Markdown files
- URI.js -- processing URIs
- moment.js -- friendly time strings
- highlight.js -- highlighting code blocks
- MathJax.js -- displaying LaTeX formulas
- PhantomJS -- headless tests
MIT