Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What is a gist, really? Is it a versioned, modifiable and referencable publication? Can I store it in my github repo? Should we be using gist as a model for info packet? is there an "API"? If someone could explain their understanding of a gist, I would appreciate it.


A gist is basically a mini-git repo. There is a revision history and they are attached to your github page. You can also folk or edit them and there is a permalink to each revision.

There is programmatic access to gists via the github API.

This might help clarify: An example of using gist.io: http://gist.io/3135754 The underlying gist: https://gist.github.com/3135754


I was thinking it would be nice if there was also https://gist.github.com/3135754.json

Then I checked. And there is.

Not to mention JSONP suppport.

https://gist.github.com/3135754.json?callback=foo


Very interesting - I also noticed that gists have comments -- I'm not sure how those are handled. Doesn't this mean that gists are the ultimate blog? Can you even create them locally and push?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: