I hereby claim:
- I am francisdb on github.
- I am francisdb (https://keybase.io/francisdb) on keybase.
- I have a public key ASDi22NaZc8VXnPYJss4TqmTHejsi7CTmjQBvRyqVulKqgo
To claim this, I am signing this object:
add this to ~/.bash_profile | |
export LANG="en_US.utf8" | |
export LANGUAGE="en_US.utf8" | |
export LC_ALL="en_US.utf8" |
As a ... | |
I want ... | |
so that ... |
git checkout newbranch | |
git cherry-pick 612ecb3 |
// I'm looking for a better solution for the time logging (preferable in a transparent way) | |
private def logTime(message: String, promise: Future[Response]) = { | |
// not 100% ok, request is already running | |
// might even not be started yet | |
val now = System.currentTimeMillis | |
promise.onRedeem { response => | |
val time = System.currentTimeMillis - now | |
logger.info(message + " => " + response.status + " " + time + "ms " + response.body.length + "b") | |
} |
.settings{ | |
routesImport += "se.radley.plugin.salat.Binders._", | |
templatesImport += "org.bson.types.ObjectId" | |
} |
#!/bin/sh | |
export PATH=/opt/play2:$PATH | |
cd ~/server | |
rundir=myproject | |
repo=git@server:myproject.git | |
temp=$rundir.buid.temp | |
rm -rf $temp |
val fasterXmlJacksonVersion = "2.2.2" | |
val appDependencies = Seq( | |
"com.fasterxml.jackson.core" % "jackson-core" % fasterXmlJacksonVersion, | |
"com.fasterxml.jackson.core" % "jackson-annotations" % fasterXmlJacksonVersion, | |
"com.fasterxml.jackson.core" % "jackson-databind" % fasterXmlJacksonVersion, | |
"com.fasterxml.jackson.module" %% "jackson-module-scala" % fasterXmlJacksonVersion | |
) |
implicit val pkWrites = new Writes[Pk[Long]] { | |
def writes(pk: Pk[Long]): JsValue = { | |
pk.toOption match { | |
case Some(value) => JsNumber(value) | |
case None => JsNull // TODO check if correct | |
} | |
} | |
} |
mvn clean test -Dmaven.surefire.debug -Dtest=com.bla.MyTest |
I hereby claim:
To claim this, I am signing this object: