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 BDF6 8233 D3C1 176E 70D4 99B9 88C0 73AD 16FB 3109
To claim this, I am signing this object:
| "Afghanestan", "Al Arabiyah as Suudiyah", "Al Bahrayn", "Al Imarat al Arabiyah al Muttahidah", "Al Jaza'ir", "Al Kuwayt", "Al Maghrib", "Al Urdun", "Al Yaman", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Aomen", "Aotearoa", "Argentina", "Aruba", "As-Sudan", "Australia", "Azarbaycan", "Aṣ-Ṣaḥrā’ al-Gharbīyah ", "Bahamas", "Bangladesh", "Barbados", "Belau", "Belgique/Belgie", "Belize", "Benin", "Bermuda", "Bharat", "Bhutan", "Bod ", "Bolivia", "Bosna i Hercegovina", "Botswana", "Brasil", "Bulgaria", "Burkina Faso", "Burundi", "Byelarus", "Cabo Verde", "Cameroon", "Canada", "Cayman Islands", "Ceska Republika", "Chile", "Choson", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comores", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Crna Gora", "Cuba", "Danmark", "Dawlat Qatar", "Deutschland", "Dhivehi Raajje", "Djibouti", "Dominica", "Dominicana, Republica", "Éire", "Ecuador", "Eesti Vabariik", "El Salvador", "Ellas or Ellada", "España", "Estados Unidos M |
| package util | |
| import java.security._ | |
| import java.security.spec.X509EncodedKeySpec | |
| import javax.crypto._ | |
| import org.apache.commons.codec.binary.Base64 | |
| object RSA { | |
| def decodePublicKey(encodedKey: String): Option[PublicKey] = { | |
| this.decodePublicKey( |
| import org.joda.time.{Interval, Instant} | |
| val intervals = List( | |
| new Interval(new Instant("2014-01-25T12:00"), new Instant("2014-01-27T08:00")), | |
| new Interval(new Instant("2014-01-27T18:00"), new Instant("2014-01-28T08:00")), | |
| new Interval(new Instant("2014-01-28T18:00"), new Instant("2014-01-29T08:00")), | |
| new Interval(new Instant("2014-01-29T18:00"), new Instant("2014-01-30T08:00")), | |
| new Interval(new Instant("2014-01-30T18:00"), new Instant("2014-01-31T08:00")), | |
| new Interval(new Instant("2014-01-31T18:00"), new Instant("2014-02-01T08:00")), | |
| new Interval(new Instant("2014-02-01T12:00"), new Instant("2014-02-03T08:00")), |
| 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 |
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:
| 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 | |
| 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 |
| // 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) |