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
#!/bin/bash | |
START_SCRIPT={{ start_script }} | |
PID_FILE={{ pid_file }} | |
# *********************************************** | |
# *********************************************** | |
ARGS="" # optional start script arguments | |
DAEMON=$START_SCRIPT |
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
import groovy.transform.* | |
class HtmlBuilder { | |
def html(@DelegatesTo(Html) Closure c) { | |
c.delegate = new Html() | |
println "<html>"; c(); println "</html>" | |
} | |
} | |
class Html { | |
def head(@DelegatesTo(Head) Closure c) { | |
c.delegate = new Head() |
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
import groovy.transform.* | |
@ToString (includeNames = true) | |
class BuildGradle { | |
final StringWriter w = new StringWriter() | |
def plugins = [] | |
void apply () { | |
plugins.each { | |
w << "apply plugin : '${it}'\n" |
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
// プログラミングGROOVY P69 | |
list = ['x'] | |
def gs = "$list ${list[0]}" | |
assert gs instanceof GString | |
assert gs == '[x] x' | |
list[0]='y' | |
assert gs == '[y] x' |
スライドと Togetter と日本語訳へのリンクは http://build-shokunin.org/juc2012/sessions/ にも載るようになったのでこの Gist はもうメンテナンスされないかも。
- 基調講演
- satta-1: Jenkinsプロジェクト現状報告とこれから http://www.slideshare.net/kohsuke/jenkins-user-conference
- 通常発表
- satta-2: Jenkinsによる自動受け入れテストから継続的デリバリーまで http://www.slideshare.net/wakaleo/automated-acceptance-testing-and-continuous-delivery
- satta-3: 飛行機を飛ばしながら直す方法教えます:JenkinsとGerritによる継続的デプロイメントの実践 https://github.com/rtyler/juc-tokyo-presentation/raw/master/juc-tokyo.pdf
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
apply plugin:'groovy' | |
apply plugin:'idea' | |
repositories { mavenCentral() } | |
dependencies { | |
groovy 'org.codehaus.groovy:groovy-all:1.8.2' | |
} | |
task makeDirs(description:'make all dirs for project setup') << { |
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
# (Re)create the index | |
curl -X DELETE "http://localhost:9200/tagcloud" | |
curl -X PUT "http://localhost:9200/tagcloud"-d '{ | |
"settings" : { | |
"index" : { | |
"number_of_shards" : 1, | |
"number_of_replicas" : 0 | |
} | |
} | |
}' |
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
def versions = [] | |
def f = new File('mock-version-tags.txt') | |
f.eachLine { versions << it } | |
def versionComparator = { a, b -> | |
def VALID_TOKENS = /._/ | |
a = a.tokenize(VALID_TOKENS) | |
b = b.tokenize(VALID_TOKENS) | |
for (i in 0..<Math.max(a.size(), b.size())) { |
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
import com.softsynth.jsyn.* | |
//groovy script for phone call | |
class DualToneMultiFrequency{ | |
def num | |
def buf | |
SineOscillator high | |
SineOscillator low | |
AddUnit mixer | |
LineOut out |
NewerOlder