Using the GitHub API to Display your Repositories

29 Dec 2008 – Draperstown, Northern Ireland

I wanted to display a list of my repositories on my homepage. Spent a while fluffing about with the jQuery.getJSON call, but in the end found it preferable to use the callback parameter combined with jQuery.getScript.

Heres the code, which will populate a div with the id ‘repos’: