var foo = function() { var t = new Date(); foo = function() { return t; }; return foo(); };
Source:
http://peter.michaux.ca/articles/lazy-function-definition-pattern
var foo = function() { var t = new Date(); foo = function() { return t; }; return foo(); };
Source:
http://peter.michaux.ca/articles/lazy-function-definition-pattern
Syntax highlightning for Firebug
https://addons.mozilla.org/en-US/firefox/addon/firerainbow/
A nice plugin which provides some functionality from Ajax.org ACE editor in the Firebug console
https://addons.mozilla.org/en-US/firefox/addon/acebug/
Type in the console:
export PATH=$PATH:/new_path_entry
"0px -123px".match(/-?\d+/g)
Results:
0 123px => [0, 123] -0px -123px => [-0, -123]
http://rondevera.github.com/jslintmate/
Array.prototype.clone = function() { return this.slice(0); }
String.prototype.firstToUpperCase = function() { return this.charAt(0).toUpperCase() + this.slice(1).toLowerCase(); }
TotalTerminal