Skip to content

Instantly share code, notes, and snippets.

@pdokas
Created December 16, 2010 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdokas/744152 to your computer and use it in GitHub Desktop.
Save pdokas/744152 to your computer and use it in GitHub Desktop.
Calculates how much money the pinboard.in signup price algorithm nets over time
var NUMBERZ = function(min, max) {
var sum = 0, i;
min *= 1000, max *= 1000;
for (i = min; i < max; i++) {
sum += +(i / 1000).toFixed(2);
}
return +sum.toFixed(2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment