This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // from @rem's dashboard.js: http://rem.im/chirp/dashboard.js | |
| if (![].forEach) { | |
| Array.prototype.forEach = function(fn) { | |
| var len = this.length || 0, | |
| i = 0; | |
| context = arguments[1]; | |
| if (typeof fn == 'function') { | |
| for (; i < len; i++) { | |
| fn.call(context, this[i], i, this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setInterval((function () { | |
| console.log(new Date()); // run some arbitrary code | |
| return arguments.callee; // here be the magic | |
| })(), 1000); | |
| // ^---- and that runs the function, and the return val is assign to the interval |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // JavaScript History implementation by Dima Romakhin | |
| // http://romakhin.ru/harmony/draw/src/history.js | |
| var history_max_len = 30; | |
| function History( o ) | |
| { | |
| this.init( o ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * TableSorter 2.0 Parsers | |
| * Version 1.0.0 | |
| * | |
| * Dual licensed under the MIT and GPL licenses: | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * http://www.gnu.org/licenses/gpl.html | |
| * | |
| */ | |
| /** |
NewerOlder