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
{ | |
"schemaVersion":"1.2", | |
"description":"Upgrade Rancher cluster to specified version", | |
"parameters":{ | |
"version":{ | |
"type":"String", | |
"description":"(Required) The version to upgrade to.", | |
"maxChars":4096 | |
} | |
}, |
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
public class ShadowJar extends CopySpec { | |
public <T extends Transformer> ShadowSpec transform(Class<T> clazz) throws InstantiationException, IllegalAccessException { | |
//.. | |
} | |
public <T extends Transformer> ShadowSpec transform(Class<T> clazz, Action<T> configure) throws InstantiationException, IllegalAccessException { | |
//.. | |
} | |
} |
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
source ~/.aliases/main | |
source "$HOME/.antigen/antigen.zsh" | |
export SHELL=/bin/zsh | |
antigen use oh-my-zsh | |
#antigen bundle git | |
antigen bundle gitfast | |
antigen bundle gradle | |
antigen bundle grails | |
antigen bundle redis-cli |
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
buildscript { | |
repositories { | |
mavenCentral() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.github.jengelman.gradle.plugins:shadow:0.8' | |
} | |
} |
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
package john.app; | |
import groovy.lang.Closure; | |
import groovy.lang.GroovyObject; | |
import groovy.lang.MetaClass; | |
import john.lib.EchoUtil; | |
import org.codehaus.groovy.runtime.GeneratedClosure; | |
import org.codehaus.groovy.runtime.callsite.CallSite; | |
public class EchoApp |
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 com.lordofthejars.nosqlunit.redis.embedded.EmbeddedJedis | |
import redis.clients.jedis.BinaryClient | |
import redis.clients.jedis.Builder | |
import redis.clients.jedis.BuilderFactory | |
import redis.clients.jedis.Pipeline | |
import redis.clients.jedis.Response | |
import redis.clients.jedis.SortingParams | |
import redis.clients.jedis.Tuple | |
import redis.clients.jedis.ZParams | |
import redis.clients.jedis.exceptions.JedisDataException |
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
class EchoService extends Service<EchoConfiguration> { | |
public static void main(String[] args) { | |
new EchoService().run(args) | |
} | |
@Override | |
void initialize(Bootstrap<EchoConfiguration> bootstrap) { | |
bootstrap.addBundle( | |
GuiceBundle.<EchoConfiguration>newBuilder() |
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 org.hibernate.dialect.H2Dialect | |
import org.hibernate.dialect.function.SQLFunctionTemplate | |
import org.hibernate.type.StandardBasicTypes | |
class H2MysqlSupportDialect extends H2Dialect { | |
H2MysqlSupportDialect() { | |
registerFunction('datediff', new SQLFunctionTemplate(StandardBasicTypes.DATE, "datediff('DAY', ?2, ?1)")) | |
} | |
} |
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
`require': no such file to load -- io/console (LoadError) | |
from /Users/jengelman/scripts/selecta:16:in `<main>' |
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
apply plugin: 'groovy' | |
apply plugin: 'shadow' | |
buildscript { | |
repositories { | |
maven { | |
name 'Shadow' | |
url 'http://dl.bintray.com/content/johnrengelman/gradle-plugins' | |
} | |
} |