I hereby claim:
- I am urcadox on github.
- I am urcadox (https://keybase.io/urcadox) on keybase.
- I have a public key whose fingerprint is 7C92 56D4 AB89 2A42 1D0F FDBF F19E 634D 4F24 A5C7
To claim this, I am signing this object:
| object StuffUsingTimedFutures { | |
| def slowFuture(): Unit = { | |
| val future = Future { | |
| Thread.sleep(1000) | |
| } | |
| TimedFuture(future).printTime("foo") | |
| } | |
| } |
| alter table records | |
| add constraint cname_single_record_per_name_a | |
| exclude using gist (name with =, "type" with <>) | |
| where ("type" IN ('A', 'CNAME')); |
I hereby claim:
To claim this, I am signing this object:
| // For Play 2.5.x and 2.6.x | |
| // After starting the application in the console (https://www.playframework.com/documentation/2.5.x/PlayConsole#launch-the-interactive-console) | |
| import play.api._ | |
| val env = Environment(new java.io.File("."), this.getClass.getClassLoader, Mode.Dev) | |
| val context = ApplicationLoader.createContext(env) | |
| val loader = ApplicationLoader(context) | |
| val app = loader.load(context) | |
| Play.start(app) |
| package controllers | |
| import javax.inject._ | |
| import play.api._ | |
| import play.api.http.DefaultHttpFilters | |
| import play.api.mvc._ | |
| import play.api.Environment | |
| import scala.concurrent.{ExecutionContext, Future} | |
| import akka.stream.Materializer |
| package controllers; | |
| import play.api._ | |
| import play.api.http.HttpFilters | |
| import play.api.mvc._ | |
| import scala.concurrent.Future | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import play.api.Play.current | |
I hereby claim:
To claim this, I am signing this object:
| import org.joda.time.format.ISODateTimeFormat | |
| implicit val dateTimeBinder = new QueryStringBindable.Parsing[DateTime]( | |
| ISODateTimeFormat.dateTime.parseDateTime _, | |
| ISODateTimeFormat.dateTime.print _, | |
| (key: String, e: Exception) => s"Cannot parse parameter $key as DateTime: ${e.getMessage}" | |
| ) |
I hereby claim:
To claim this, I am signing this object:
| object Global extends WithFilters(new GzipFilter()) with DBeable { | |
| /* [...] */ | |
| override def onError(request: RequestHeader, ex: Throwable) = { | |
| import _root_.util.Mailer | |
| val exId = ex match { | |
| case e: PlayException => Some(e.id) | |
| case _ => None |