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} |
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, |
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} |
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' | |
}] |
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
#!/bin/bash | |
################################################################## | |
# Open Atlassian Stash pull request from command line. | |
# (opens the default browser at the proper URL with data prefilled) | |
# | |
# It infers current branch name, repo name, current user name, from git config. | |
############################### CONFIG ########################### | |
URL_PREFIX="http://stash.yourcompany.com" |
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 cleanEmptyFoldersRecursively(folder) { | |
var fs = require('fs'); | |
var path = require('path'); | |
var isDir = fs.statSync(folder).isDirectory(); | |
if (!isDir) { | |
return; | |
} | |
var files = fs.readdirSync(folder); |
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
#!/bin/bash | |
alias npmrun='npm run' | |
alias _npmscripts_print="node -e \"console.log(Object.keys(require('./package.json').scripts, null, ' ').join(' '))\"" | |
_npmscripts_completion() | |
{ | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
opts=$( _npmscripts_print ) | |
COMPREPLY=( $(compgen -W "${opts}" -- $cur) ) | |
} | |
complete -F _npmscripts_completion npmrun |