This file contains hidden or 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>com.bowerstudios</groupId> | |
<artifactId>cas</artifactId> | |
<packaging>war</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<build> |
This file contains hidden or 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
#!/bin/sh | |
clear | |
f_o6 () { | |
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64; | |
sudo update-alternatives --set java /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java; | |
} | |
f_s6 () { |
This file contains hidden or 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
//sudo update-alternatives --display | |
//sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-6-sunjdk-amd64/bin/java" 1 | |
Map<String, String> javaVersions=['6':"java-6-openjdk-amd64", '6s':"java-6-sunjdk-amd64", '7':"java-7-openjdk-amd64"] | |
javaVersions.each{String version, String name -> | |
StringBuilder sb = new StringBuilder() | |
String jreBinaryPath="/usr/lib/jvm/${name}/jre/bin/" |
This file contains hidden or 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
<properties> | |
<jasperreports.version>4.6.0</jasperreports.version> | |
<groovy.version>1.8.6</groovy.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>net.sf.jasperreports</groupId> | |
<artifactId>jasperreports</artifactId> | |
<version>${jasperreports.version}</version> |
This file contains hidden or 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 java.awt.datatransfer.StringSelection | |
import java.awt.Toolkit | |
import java.awt.datatransfer.* | |
class ClipboardUtils{ | |
static final Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard() | |
static void setClipboardContents(final String contents){ | |
clipboard.setContents(new StringSelection(contents), null) | |
} |
This file contains hidden or 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.bowerstudios.config; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import org.apache.commons.configuration.Configuration; | |
import org.springframework.core.env.EnumerablePropertySource; | |
/** |
This file contains hidden or 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 factory; | |
import java.util.List; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import com.google.common.collect.Lists; | |
import transferobject.TransferObject; |
This file contains hidden or 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.example.app.config.logging; | |
import javax.servlet.ServletContextEvent; | |
import javax.servlet.ServletContextListener; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
/** |
This file contains hidden or 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 model; | |
import java.util.List; | |
import java.util.Map; | |
import org.codehaus.jackson.annotate.JsonAutoDetect; | |
import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility; | |
import org.codehaus.jackson.annotate.JsonProperty; | |
import org.springframework.validation.BindingResult; | |
import org.springframework.validation.FieldError; |
This file contains hidden or 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
/* | |
* motorolaDate.groovy | |
* Renames photos taken by Droid X Cameras into something | |
* more sortable and useful. | |
* | |
* runs with groovy http://groovy.codehaus.org/ | |
* | |
* Download, edit the dirName variable, and then run: | |
* groovy motorolaDate.groovy | |
* The script will create sub-directories by year and month. |