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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
:set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:< | |
:set list |
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 | |
# Delete everything except some files: | |
find . -not \( -path "./.git" -o -path "./.git/*" -o -path "./pom.xml" \) -delete | |
# checkout all branches you want to have: | |
for i in develop br1 br2 br3; do git branch -t $i origin/$i; done | |
# automatically find all remote branches: | |
for i in `git show-ref | awk '/ refs\/remotes\/origin\// { sub(/refs\/remotes\/origin\//,""); print $2 }' | grep -v '^HEAD$'`; do git branch -t $i origin/$i; done |
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
// parse script by file name dynamically | |
new GroovyShell(binding).parse(new File("${context.serviceDirectory}/test_script.groovy")).run() | |
// run script statically linking | |
new test_script(binding).run() |
NewerOlder