I was looking for something like this for quite a while. From time to time, I want to write about code organization, but always struggle on how to present that. Being able to embed a Github repo in a post seems like a great way of doing that. Its not like I would embed the repo of an actual, big project.
When clicking on a file to preview it, you should append the name of the file to the bread crumbs, to show that you can go back to the listing by clicking back on the repo name. It took me a while to figure that out.
16 comments
[ 3.3 ms ] story [ 54.6 ms ] threadI would recommend allowing one to set a max height. It's rather impractical to have a 200px tall box turn into an enormous box with 500 lines of CSS.
I already built a couple Github jQuery widgets that people in this thread might also find relevant: http://www.joepettersson.com/demo/pretty-gist/ http://www.joepettersson.com/demo/jquery-github-widget/
I can see this being useful in tutorial articles to allow the user to see all the code involved at once.