Related Posts
The Pirate Bay, err, The Liberty Bay
A Screenshot of today’s ThePirateBay.org homepage. “Hint Hint?” These guys certainly like to piss people off to get media attention and more traffic for that high priced CPM they must have. read more | digg story
javascript: Format a number to display thousands US style (#,###,###,###)
[javascript] /** * Format a number to display thousands like in the US -> 1000000 => 1,000,000 * @param number * @returns */ function formatThousands(number) { return Math.max(0, number).toFixed(0).replace(/(?=(?:d{3})+$)(?!^)/g, ‘,’); } [/javascript]
Function callbacks in C
Ever since I started programming in Javascript, and doing asynchronous function calls, I’ve found myself to be addicted to passing functions as parameters. I do it a lot in python and php, it’s very easy to do this on all these dynamic typed languages. I never had this concept of passing functions as parameters, or […]