I hereby claim:
- I am JowEnnever on github.
- I am jennever (https://keybase.io/jennever) on keybase.
- I have a public key whose fingerprint is 2CBB 713A 9401 863C 2FCC 5430 C4CE B98A EC1B 6CF9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package me.dwnld.thrift | |
import _root_.shapeless.{Generic, HNil, ::, Nat} | |
object implicits { | |
type ScaledImage = scala.collection.Map[String, HostedImage] | |
type AppliedExperiments = scala.collection.Map[String, Int] | |
implicit val DateTimeGeneric: Generic.Aux[DateTime, Option[Long] :: HNil] = new Generic[DateTime] { | |
type Repr = Option[Long] :: HNil |
case class Point(x: Int, y: Int) | |
case class Rect(ul: Point, br: Point) { | |
def covers(other: Rect): Boolean = { | |
(ul.x <= other.ul.x && ul.y <= other.ul.y) && | |
(br.x >= other.br.x && br.y >= other.br.y) | |
} | |
def overlaps(other: Rect): Boolean = { | |
// If one rectangle is on left side of other | |
if (ul.x > other.br.x || other.ul.x > br.x) { | |
return false |
I hereby claim:
To claim this, I am signing this object: