19 Oct
Thousand separator regex
The amount of code that goes in to formatting numbers can be silly sometimes, especially when you realise it can be done as a regex.
Note that if the number has a DP longer than 2, it'll format it - I suggest splitting out the DP first, and bash them back together.
(via)
You should follow me on Twitter here I'll tweet about JavaScript, HTML 5 and other such gems (amongst usual tweet-splurges)
Introducing HTML5
[...] GeekTool output, you need to patch the source to interpret command output as utf-8. Original Post Sample Implementation [...]