Skip to content

Instantly share code, notes, and snippets.

@mbseid
mbseid / AbstractDAO.java
Created August 16, 2012 17:25
Using Ebean with Play! Framework 2
package daos;
import java.util.*;
import javax.persistence.*;
import play.*;
import play.db.ebean.*;
import play.db.ebean.Model.*;
import play.data.format.*;
import play.data.validation.*;
@mbseid
mbseid / Build.scala
Created July 23, 2012 15:03 — forked from andypetrella/Build.scala
Gatling SBT Test
import sbt._
import Keys._
import GatlingPlugin._
object MinimalBuild extends Build {
val SNAPSHOT = "-SNAPSHOT"
val appName = "gatling-sbt-sample"
val buildVersion = "0.0.1-SNAPSHOT"
@mbseid
mbseid / gist:2924219
Created June 13, 2012 13:55
Deadbold Resolver
import sbt._
import Keys._
import PlayProject._
object ApplicationBuild extends Build {
val appName = "Blog"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
@mbseid
mbseid / Adding to server.xml
Created October 18, 2011 20:01
ColdGold Hole #2
<cffunction name="getFile">
<cfargument name="path">
<cffile action="READ" file="#path#" variable="serverXML">
<cfreturn xmlParse(serverXML)>
</cffunction>
<cffunction name="writeFile">
<cfargument name="path">
<cfargument name="xml">
<cffile action="write" file="#path#" output="#ToString(xml)#">
</cffunction>