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 com.aol.data.api.query; | |
import com.google.common.collect.ImmutableList; | |
import com.google.common.collect.ImmutableMap; | |
import com.google.common.collect.ImmutableSortedMap; | |
import org.apache.commons.lang3.time.StopWatch; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.security.SecureRandom; |
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
Configure the Maven Jar Plugin to do so (or more precisely, the Maven Archiver): | |
<project> | |
... | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-jar-plugin</artifactId> | |
<configuration> | |
<archive> |
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
<!-- most of this copied directly from http://logback.qos.ch/manual/configuration.html --> | |
<configuration debug = "false" scan = "false" scanPeriod = "30 seconds"> | |
<contextName>AppName</contextName> | |
<appender name = "STDOUT" class = "ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern> | |
</encoder> |
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
<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>org.group</groupId> | |
<artifactId>artifact-name</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</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
[Desktop Entry] | |
Version=1.0 | |
Name=IntelliJ-12.0.1 | |
Comment=IDEA IntelliJ 12.0.1 | |
Exec=/home/emoseman/idea-IC-123.94/bin/idea.sh | |
Icon=/home/emoseman/idea-IC-123.94/bin/idea.png | |
Terminal=false | |
Type=Application | |
Categories=Development;Java;IDE; |
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 your.org.here; | |
/** | |
* Class Description todo | |
* | |
* @author Your Name ([email protected]) | |
* @since 7/16/12 | |
* @version 1.0 | |
*/ | |
import javax.naming.NamingException; |
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: 'java' | |
apply plugin: 'war' | |
version = "1.0" | |
group = "your.org.here" | |
task explodedWar(type: Copy) { | |
into "$buildDir/exploded" | |
with war | |
} |
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
DROP TYPE NAME CASCADE; | |
CREATE TYPE NAME ( | |
INT,TEXT | |
); |
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
-- DROP FUNCTION IF EXISTS function name; | |
CREATE FUNCTION function name ( | |
argument types | |
) | |
RETURNS return type | |
AS $$ | |
DECLARE | |
function scope variables | |
BEGIN |
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
/* | |
* Common build file for gradle builds. | |
* To include use: | |
* apply from: "https://raw.github.com/gist/2882571/2a96a6218b24acbb1e47e87bedab180e2a3ac3ca/common.gradle" | |
*/ | |
List apachecommons = ["commons-beanutils:commons-beanutils:1.8.3", | |
"org.apache.commons:commons-lang3:3.1", | |
"commons-logging:commons-logging:1.1.1"] |
NewerOlder