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
diff --git a/scripts/_GrailsEvents.groovy b/scripts/_GrailsEvents.groovy | |
index bc0b479..bb8f13e 100644 | |
--- a/scripts/_GrailsEvents.groovy | |
+++ b/scripts/_GrailsEvents.groovy | |
@@ -49,13 +49,19 @@ binding.addBuildListener(eventListener) | |
// Set up the classpath for the event hooks. | |
classpath() | |
// Now load them. | |
eventListener.classLoader = new GroovyClassLoader(classLoader) |
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
#! /usr/bin/env zsh | |
# after writing, found this link on Hacker News: | |
# DON'T RUN THIS, GO HERE INSTEAD: http://xkcd-map.rent-a-geek.de/ | |
for NS in n s; do | |
for i in {1..25}; do | |
for WE in w e; do | |
for j in {1..25}; do | |
wget http://imgs.xkcd.com/clickdrag/$i$NS$j$WE.png |
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
import groovy.transform.Canonical | |
import spock.lang.Specification | |
@Canonical | |
class Optional<T> { | |
T reference | |
T get() { | |
if (isPresent()) return reference |
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
#! /usr/bin/env groovy | |
import ratpack.exec.Blocking | |
import ratpack.groovy.test.embed.GroovyEmbeddedApp | |
import ratpack.handling.Context | |
import ratpack.http.client.HttpClient | |
import ratpack.rx.RxRatpack | |
import ratpack.test.embed.EmbeddedApp | |
import rx.Observable | |
@GrabResolver(name = 'jcenter', root = 'http://jcenter.bintray.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
import ratpack.exec.Blocking | |
import ratpack.handling.Context | |
import ratpack.groovy.test.embed.GroovyEmbeddedApp | |
@GrabResolver(name = 'jcenter', root = 'http://jcenter.bintray.com/') | |
@GrabExclude('org.codehaus.groovy:groovy-all') | |
@Grab('org.slf4j:slf4j-simple:1.7.12') | |
@Grab('io.ratpack:ratpack-groovy:1.3.3') | |
@Grab('io.ratpack:ratpack-rx:1.3.3') |
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
import ratpack.exec.Promise | |
import ratpack.handling.Context | |
import ratpack.groovy.test.embed.GroovyEmbeddedApp | |
@GrabResolver(name = 'jcenter', root = 'http://jcenter.bintray.com/') | |
@GrabExclude('org.codehaus.groovy:groovy-all') | |
@Grab('org.slf4j:slf4j-simple:1.7.12') | |
@Grab('io.ratpack:ratpack-groovy:1.3.3') | |
@Grab('io.ratpack:ratpack-rx:1.3.3') |
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
import ratpack.exec.Blocking | |
import ratpack.exec.ExecInterceptor | |
import ratpack.exec.Execution | |
import ratpack.func.Block | |
import ratpack.handling.Context | |
import static ratpack.groovy.Groovy.ratpack | |
@GrabResolver(name = 'jcenter', root = 'http://jcenter.bintray.com/') | |
@GrabExclude('org.codehaus.groovy:groovy-all') |
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
import ratpack.exec.ExecInterceptor | |
import ratpack.exec.Execution | |
import ratpack.func.Block | |
import ratpack.handling.Context | |
import static ratpack.groovy.Groovy.ratpack | |
@GrabResolver(name = 'jcenter', root = 'http://jcenter.bintray.com/') | |
@GrabExclude('org.codehaus.groovy:groovy-all') | |
@Grab('io.ratpack:ratpack-groovy:1.3.0') |
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
#! /usr/bin/env groovy | |
import ratpack.exec.Downstream | |
import ratpack.exec.ExecInterceptor | |
import ratpack.exec.Execution | |
import ratpack.exec.Promise | |
import ratpack.func.Block | |
import ratpack.handling.Context | |
import static ratpack.groovy.Groovy.ratpack |
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
#! /usr/bin/env groovy | |
import ratpack.exec.Blocking | |
import ratpack.exec.ExecInterceptor | |
import ratpack.exec.Execution | |
import ratpack.func.Block | |
import ratpack.groovy.test.embed.GroovyEmbeddedApp | |
import ratpack.handling.Context | |
import ratpack.http.client.HttpClient | |
import ratpack.rx.RxRatpack | |
import ratpack.service.Service |