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
/*! | |
* Easy to use table creator | |
* afonsomatos <[email protected]> | |
* | |
* @param {Array} - Array containing the rows of the table | |
* @param {Object} [{rows: Array.length, | |
* padding: 2, | |
* marginLeft: 2, | |
* lineHeight: 0, | |
* cols: <row in most length>.length }] - Configure object |
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
// Get script file location | |
// doesn't work for older browsers | |
var getScriptLocation = function() { | |
var fileName = "fileName"; | |
var stack = "stack"; | |
var stackTrace = "stacktrace"; | |
var loc = null; | |
var matcher = function(stack, matchedLoc) { return loc = matchedLoc; }; |
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
// Most accurate javascript timing | |
now = function() { | |
return performance.now()|| | |
performance.mozNow() || | |
performance.msNow() || | |
performance.oNow() || | |
performance.webkitNow() || | |
Date.now() || | |
new Date().getTime(); |
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
/*! | |
Object-when implementation on ES5 (made by afonsomatos) | |
Released under the MIT license (2014-11-10) | |
*/ | |
// object.when | |
Object.defineProperty(Object.prototype, "when", { |
NewerOlder