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
| ANGULAR_APP | |
| .filter('toNoCase', function () { | |
| var hasSpace = /\s/; | |
| var hasSeparator = /[\W_]/; | |
| var separatorSplitter = /[\W_]+(.|$)/g; | |
| var camelSplitter = /(.)([A-Z]+)/g; | |
| function unseparate(string) { | |
| return string.replace(separatorSplitter, function (m, next) { | |
| return next ? ' ' + next : ''; | |
| }); |
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
| mediaQuery = (function() { | |
| // Same as in bootstrap/_variables.less | |
| // var screenXs = 480; // Not used | |
| var screenSm = 768; | |
| var screenMd = 992; | |
| var screenLg = 1200; | |
| var screenXsMax = screenSm - 1; | |
| var screenSmMax = screenMd - 1; |
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
| console.log("2015-03-16T21:29:54.23Z" > "2015-03-16T21:13:58.303Z") // expects true | |
| console.log("2015-03-16T21:29:54.23Z" < "2015-03-16T21:13:58.303Z") // expects false | |
| console.log("2015-03-16T21:13:58.303Z" > "2015-03-16T21:29:54.23Z") // expects false | |
| console.log("2015-03-16T21:13:58.303Z" < "2015-03-16T21:29:54.23Z") // expects true |
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
| var hasSpace = /\s/; | |
| var hasSeparator = /[\W_]/; | |
| var separatorSplitter = /[\W_]+(.|$)/g; | |
| var camelSplitter = /(.)([A-Z]+)/g; | |
| function unseparate(string) { | |
| return string.replace(separatorSplitter, function (m, next) { | |
| return next ? ' ' + next : ''; | |
| }); | |
| } | |
| function uncamelize(string) { |
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
| //======================================================================== | |
| // Responsive text-align (https://github.com/twbs/bootstrap/issues/11292) | |
| // and Responsive float | |
| //======================================================================== | |
| .text-left-not-xs, .text-left-not-sm, .text-left-not-md, .text-left-not-lg { | |
| text-align: left; | |
| } | |
| .text-center-not-xs, .text-center-not-sm, .text-center-not-md, .text-center-not-lg { | |
| text-align: center; |
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
| NaN==NaN // false, wtf? | |
| isNaN(NaN) // true | |
| isNaN(0/0) // true | |
| isNaN(10) // false | |
| isNaN("10") // false | |
| isNaN("any string that can't become number") // true | |
| isNaN(true) // false | |
| isNaN(false) // false | |
| typeof NaN === 'number' // true |