Live data from Hacker News

Show HN: GitBattle – Battle two Github accounts

gitbattle.com

21–30 of 45 posts

Re: Show HN: GitBattle – Battle two Github accounts

#25
post #22

Not sure if it can handle big repos very well, I just threw in Twitter vs Facebook for fun and I got stuck with the "secret of life" message. But it's pretty neat! :)

Yeah, we loop over every page of commits for every repo for each user, so it takes a little while...that being said, if you wait it's pretty cool to see. Twitter is ~90 and Facebook is ~80.

I reached out to Github to see if there was a better way to do this, but they said there wasn't, unfortunately.

Re: Show HN: GitBattle – Battle two Github accounts

#26
regarding the twitter vs facebook issue, checking the network panel on chrome, the rest of the request are pending and checking one of the requested url (https://api.github.com/repos/twitter/twitter4j/commits)

the error message is:

{ "message": "API Rate Limit Exceeded for 112.199.99.5" }

Re: Show HN: GitBattle – Battle two Github accounts

#27

regarding the twitter vs facebook issue, checking the network panel on chrome, the rest of the request are pending and checking one of the requested url ( https://api.github.com/repos/twitter/twitter4j/commits ) the error message is: { "message": "API Rate Limit Exceeded for 112.199.99.5" }

In the code, if you look, I actually extend that rate limit to 5000 by using authenticated requests (on the client side, I know, this is "dangerous"). The problem is that it just takes a long long time, lots of request (~400 for Facebook alone), which gradually slow down as the browser gets overloaded.

Re: Show HN: GitBattle – Battle two Github accounts

#30
If this is failing for you, make sure you haven't blocked twitter using Ghostery or the like, as this causes the script to error out.

    Uncaught ReferenceError: twttr is not defined app.js:196
    setupWinner app.js:196
Maybe the script can be made a bit more robust in this case?
Post reply on HN