Hacker News new | ask | show | jobs
by perlgeek 5214 days ago
The key is to store the original, and to display the tohtml output.

I'm kinda skeptical about embedding stuff from external sites; the more external dependencies you have, the less reliable your own blog becomes.

2 comments

I guess he estimates that is is more likely for him to loose the original than for gist to shutdown.
I had the same complaint and wrote a script to create static HTML from GitHub's Gists. I added the gist CSS rules to the rules for the WordPress theme I'm using, and now I can copy/paste the generated HTML into blog posts without fetching from GitHub.

It requires Python3 and PyQt (to execute Javascript), so it's pretty heavy weight, but I have them installed anyway, so it's worked well for me.

A brief explanation and the code is here: http://jlarocco.com/2011/12/22/static-gist-creator/

And just the code is here: https://gist.github.com/1513192