View gist:dddd8f3cdd11efdfd65e
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
node --debug-brk /d/bin/nodist/bin/node_modules/grunt-cli/bin/grunt |
View InstantTemplate.tpl
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
{macro main()} | |
<button {on click "updateModelBad" /}>Update (bad)</button> | |
<button {on click "updateModelStillBad" /}>Update (even worse)</button> | |
<button {on click "updateModelBetter" /}>Update (best)</button> | |
<br> | |
Magic value is: {@aria:Text { | |
bind : { | |
text : { | |
inside: this.data.myContainer, |
View InstantTemplate.tpl
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
{macro main()} | |
magicValue: {@aria:Text { | |
bind : { | |
text : { | |
inside: this.data, | |
to: magicValue | |
} | |
} | |
}/} | |
{/macro} |
View InstantTemplate.tpl
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
{macro main()} | |
<button {on click "updateModel" /}>Update</button> | |
<br> | |
{section { | |
macro: "printText", | |
bindRefreshTo : [{ | |
inside: this.data, | |
to: 'myContainer' | |
}] |
View InstantTemplate.tpl
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
{macro main()} | |
<button {on click "updateModelBad" /}>Update counter</button> | |
<button {on click "updateModelBetter" /}>Update counter (better)</button> | |
<br> | |
Counter has value of: {@aria:Text { | |
text : this.data.counter, | |
bind : { | |
text : { | |
inside: this.data, |
View InstantTemplate.tpl
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
{var counter = 0 /} | |
{macro main()} | |
{call tooltipDefinitions() /} | |
{call writeLinks() /} | |
{set counter = counter + 1 /} <br> | |
The main macro was executed ${counter} times. | |
{/macro} |
View execSync.js
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 execSyncPrintOutput(command, env) { | |
env = env || process.env; | |
try { | |
return require('child_process').execSync((command), { | |
stdio: 'inherit', | |
env: env | |
}); | |
} catch (e) { | |
__handleExecFailure(command); |
View localStorageWrapper.js
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
/** | |
* A constructor for a wrapper class implementing the localStorage public interface | |
* (getItem, setItem, removeItem, key, clear) and some of our extensions | |
* (getObject, setObject, removeObject, getObjectEvenIfNull). | |
* | |
* The idea is to create global `localStorageWrapper` and `sessionStorageWrapper` variables, | |
* to be used instead of `localStorage` and `sessionStorage` (see below). | |
* This is because in Safari on iOS in private mode, localStorage has a quota of 0 | |
* and always throws an exception when trying to save anything. |
OlderNewer