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
<?xml version='1.0' encoding='UTF-8'?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>test</groupId> | |
<artifactId>test</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>pom</packaging> |
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
var gistPrefix = 'https://gist.github.com/', | |
// Cache document.write so that it can be restored once all Gists have been | |
// embedded. | |
cachedWrite = document.write, | |
body = $('body'), | |
// Map each p.gist to an object that contains the paragraph to be replaced | |
// and the Gist's identifier. | |
gists = $('a.gist').map(function(n, a) { | |
a = $(a); | |
var href = a.attr('href'); |
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
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
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
File pluginZip = project.file("grails-${project.name}-${version}.zip") | |
assemble.outputs.file pluginZip | |
project.components.add(new JavaLibrary( | |
new org.gradle.api.internal.artifacts.publish.DefaultPublishArtifact( | |
project.name, | |
'zip', | |
'zip', | |
'', | |
new Date(pluginZip.lastModified()), |