明日会社がなくなっても

明日会社がなくなっていても動揺しないように、情報を残していきたい

4/9-4/15 学習記録

IntelliJ IDEA

  • Ctrl+Shift+Z: Redo

  • Ctrhl+Shift+S: Sbt Shell

Scala

Play JSON

  • Json.prettyPrint : JsValue を整形された文字列にします (改行、インデントあり)

  • Json.toJsonT(implicit writes: Writes[T]) : 解決された暗黙の Writes[T] を使った Scala オブジェクトから JsValue への変換を試みます

  • play json sampleの意味 : https://qiita.com/miyatin0212/items/fdfe3c6141323ae281c3

  • 定義の順番を変えて対応した

Error:(14, 42) No instance of play.api.libs.json.Writes is available for jp.co.yahoo.tool.PropDataExtractor.ImageInfo in the implicit scope (Hint: if declared in the same file, make sure it's declared before)
    implicit def jsonWrites = Json.writes[Props]
val Decimal = """(-)?(\d+)(\.\d*)?""".r
val Decimal(sign, integerpart, decimalpart) = "-1.23"

その他