This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import coffeescript.Plugin.{CoffeeKeys, coffeeSettings} | |
import sbt._ | |
import sbt.Keys._ | |
object WebModule extends BaseModule { | |
val moduleName = "web" | |
val moduleVersion = "0.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models.github | |
import org.joda.time.DateTime | |
import models.{Entity, EntityId} | |
import models.common.Email | |
import play.api.libs.json._ | |
import play.api.libs.functional.syntax._ | |
trait Event[T <: Entity] { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait HelperThing { | |
def badRequestFormatMessage: String = ??? | |
implicit class JsResultOps[T : ClassTag](result: JsResult[T]) { | |
/** | |
* Folds either JsError or JsSuccess into a result. | |
* | |
* @note the error case is always handled synchronously, if you want to recover from an error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.annotation.implicitNotFound | |
import scala.language.{higherKinds, implicitConversions} | |
/** | |
* A typeclass of securely printable values. | |
* | |
* Only primitive values and values that are marked as securely printable by default. | |
* | |
* You can extend new types as securely printable by adding an implicit printable to the | |
* companion object of the class. |