Skip to content

Instantly share code, notes, and snippets.

@eiszfuchs
Created February 17, 2012 13:37
Show Gist options
  • Save eiszfuchs/1853482 to your computer and use it in GitHub Desktop.
Save eiszfuchs/1853482 to your computer and use it in GitHub Desktop.
#mojam
var pre_forecast=0;window.setInterval(function(){var now=new Date();var h=now.getHours();var m=now.getMinutes();while(String(h).length<2){h='0'+h;}while(String(m).length<2){m='0'+m;}var forecast=Math.round(parseFloat($(".totalcontributed").text().replace(",",""))/(60-(new Date(timing.end*1000)-now)/1000/60/60)*60*100)/100;console.info(h+':'+m,forecast,((forecast-pre_forecast>0)?'+':'')+Math.round(forecast-pre_forecast));pre_forecast=forecast;},1000*60);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment