This file contains 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
function nachoDateDiff(startDate, endDate) | |
{ | |
// if start date is past end date stop | |
if(startDate > endDate) return null; | |
// calc the various start/end dates | |
var sy = startDate.getFullYear(), | |
ey = endDate.getFullYear(), | |
sm = startDate.getMonth(), | |
em = endDate.getMonth(), |
This file contains 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
/* nXHR | |
* ---------------------------------------------------------------------------- | |
* cross-browser (IE 8+) XMLHttpRequest that reuses an existing request for recurring requets | |
* | |
* url : https://gist.github.com/imthenachoman/8b4bbc1e4aa39fc5e6ef | |
* author : Anchal Nigam | |
* e-mail : [email protected] | |
* | |
* Copyright (c) 2015 Anchal Nigam ([email protected]) | |
* Licensed under the MIT license: http://opensource.org/licenses/MIT |
This file contains 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
/* nCreateElement | |
* ---------------------------------------------------------------------------- | |
* a JS shim to quickly create DOM elements using document.createElement | |
* | |
* url : https://gist.github.com/imthenachoman/4a72ff3f51133ab7eae3 | |
* author : Anchal Nigam | |
* e-mail : [email protected] | |
* | |
* Copyright (c) 2015 Anchal Nigam ([email protected]) | |
* Licensed under the MIT license: http://opensource.org/licenses/MIT |
This file contains 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
/* rAF | |
* ---------------------------------------------------------------------------- | |
* cross-browser (IE 8+) animation framework with easings | |
* | |
* url : https://gist.github.com/imthenachoman/d19dc4cf6e53ad3664ea | |
* author : Anchal Nigam | |
* e-mail : [email protected] | |
* | |
* Copyright (c) 2015 Anchal Nigam ([email protected]) | |
* Licensed under the MIT license: http://opensource.org/licenses/MIT |
NewerOlder