Permalink
Browse files

login

  • Loading branch information...
1 parent 5baa27f commit 146367c44d02a0b3b022645a9134abccfc6b372b @defunkt defunkt committed Dec 17, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.html
View
@@ -41,11 +41,12 @@
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
- var limit = 10 // how many repos to list
+ var limit = 10 // how many repos to list
+ var login = 'defunkt' // your username
var repos = [], list = $('#repos')
- $.getJSON('http://github.com/api/v1/json/defunkt?callback=?', function(data) {
+ $.getJSON('http://github.com/api/v1/json/' + login + '?callback=?', function(data) {
$.each(data.user.repositories, function(i) {
if (!this.fork) repos.push(this)
})

0 comments on commit 146367c

Please sign in to comment.