I hereby claim:
- I am kdabir on github.
- I am kdabir (https://keybase.io/kdabir) on keybase.
- I have a public key whose fingerprint is 69CC 79FF A8F6 8B18 85E6 2610 D073 3D5F B7CD 257B
To claim this, I am signing this object:
| #!/usr/bin/env groovy | |
| if (System.in.available()) { | |
| println new groovy.xml.XmlSlurper() | |
| .parse(System.in) | |
| .with {[groupId, artifactId, version, classifier]} | |
| *.text() | |
| .findAll() | |
| .join(':') | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #language: groovy | |
| #sudo: true | |
| before_script: | |
| - export GROOVY_VERSION=2.4.5 | |
| - wget http://dl.bintray.com/groovy/maven/apache-groovy-binary-$GROOVY_VERSION.zip -O /tmp/groovy.zip | |
| - unzip /tmp/groovy.zip -d $PWD/.groovy | |
| - export PATH=$PATH:$PWD/.groovy/groovy-$GROOVY_VERSION/bin | |
| - echo "groovy installed" |
| def out = new File("application.properties") | |
| new File('webapp/WEB-INF/conf').eachFile { file -> | |
| new File(file, "app.properties").text.eachLine { line -> | |
| if (!line.trim().startsWith("#")){ | |
| out << "${file.name}.${line}" | |
| }else { | |
| out << "${line}" | |
| } | |
| out << "\n" |
| class Servlet { | |
| String name, fqcn | |
| List patterns = [] | |
| def getPatternsStr() { | |
| patterns.collect { /"$it"/ }.join(", ") | |
| } | |
| } | |
| def web = new XmlSlurper().parse(new File('webapp/WEB-INF/web.xml')) |
| static <T, R> List<R> map(List<T> list, Function<? super T, ? extends R> mapper) { | |
| return list.stream().map(mapper).collect(Collectors.toList()); | |
| } |
| ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= |
| @Grapes([ | |
| @Grab('io.ratpack:ratpack-groovy:1.4.0'), | |
| @Grab('org.slf4j:slf4j-simple:1.7.21') | |
| ]) | |
| import static ratpack.groovy.Groovy.ratpack | |
| ratpack { | |
| handlers { | |
| get { | |
| render "Hello World!" |
| ###### OSX ###### | |
| .DS_Store | |
| ###### Java ###### | |
| *.class | |
| # Artifacts | |
| *.jar | |
| *.war | |
| # virtual machine crash logs | |
| hs_err_pid* |