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:
import akka.NotUsed | |
import akka.stream.scaladsl.{Flow, Source} ` | |
import akka.stream.{Attributes, FlowShape, Inlet, Outlet} | |
import akka.stream.Attributes._ | |
import akka.stream.stage.{GraphStage, GraphStageLogic, InHandler, OutHandler} | |
import scala.collection.immutable.Seq | |
object AkkaStreams{ | |
I hereby claim:
To claim this, I am signing this object:
while(true){ | |
console.log("ok"); | |
} |
./android list sdk --all | |
./android update sdk --no-ui --all --filter 87,81,1,2,3,82,tool,platform-tool |
mvn clean test -Dmaven.surefire.debug -Dtest=com.bla.MyTest |
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 | |
} | |
} | |
} |
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 | |
) |
#!/bin/sh | |
export PATH=/opt/play2:$PATH | |
cd ~/server | |
rundir=myproject | |
repo=git@server:myproject.git | |
temp=$rundir.buid.temp | |
rm -rf $temp |
.settings{ | |
routesImport += "se.radley.plugin.salat.Binders._", | |
templatesImport += "org.bson.types.ObjectId" | |
} |
// 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") | |
} |