cciollaro / github-grid

draw a github commit frequency chart (the blocky chart in shades of green on your homepage) in this UI, and it will produce git commits in a fake repo for you to push to github
http://cciollaro.github.io/github-grid/
1 stars 1 forks source link

Load in current github commits to work around them #3

Open cciollaro opened 10 years ago

cciollaro commented 10 years ago

The user should be able to enter their github name in order to load in their current grid, thus giving them the ability to work around it or embellish it.

cciollaro commented 10 years ago

https://github.com/users/cciollaro/contributions_calendar_data

Since CORS is disabled on github, a YQL solution might be something like:

$.getJSON("http://query.yahooapis.com/v1/public/yql",
  {
    q:      "select * from json where url=\"https://github.com/users/cciollaro/contributions_calendar_data\"",
    format: "json"
  },
  function(data){
    console.log(data);
  }
);
vgmoose commented 9 years ago

The URL has actually been moved to https://github.com/users/<username>/contributions

vgmoose commented 9 years ago

It looks like we may have to parse the SVG file we get back with YQL