Create a gist now

Instantly share code, notes, and snippets.

Get the total number of Github users right now.
function getUserCount(start) {
$.getJSON("https://api.github.com/users?since=" + start, function(data) {
if(data.length <= 0) {
console.log(start);
return;
}
return getUserCount(start + data.length);
});
}
// Insert jQuery to import getJSON method
var jq = document.createElement('script');
jq.onload = getUserCount(15822000);
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.body.appendChild(jq);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment