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
const StubInstance = Ember.Object.extend({ | |
didCreateRootView () {}, | |
}); | |
this.registry.register('-application-instance:main', StubInstance); | |
const router = this.container.lookup('router:main'); | |
router.startRouting(true); |
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
// valid math scripts | |
// Example 1 | |
x = 10 // this is mathjs variable, not plain JS | |
for (i = 0; i < x; i++) { | |
if (x >= 10) { | |
sin(x * pi) // mathjs sin function, pi is mathjs constant | |
} |
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
Array.from(document.querySelectorAll('.js-toggle-file-notes')).forEach((element) => element.click()) |
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
module.exports = function(value) { | |
const primeVerifyExpression = /^1?$|^(11+?)\1+$/; | |
const unaryValue = '1'.repeat(value); | |
return !primeVerifyExpression.test(unaryValue); | |
} |