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
case class Administrators(userId: Long, userIds: Seq[Long]) | |
case class Member(userId: Long, byAdministratorId: Option[Long] = None) | |
case class Memebers(userIds: Seq[Member]) | |
case class Message(id: Long, value: String, senderId: Long) | |
case class Messages(values: Seq[Message]) |
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
val childProps = Props(classOf[EchoActor]) | |
val stopBackOffOptions = Backoff.onStop(childProps, "c1", 100.millis, 3.seconds, 0.2) | |
val failureBackOffOptions = Backoff.onFailure(childProps, "c1", 100.millis, 3.seconds, 0.2) | |
val stopBackOffSupervisor = system.actorOf(BackoffSupervisor.props(stopBackOffOptions)) | |
val failureBackOffSupervisor = system.actorOf(BackoffSupervisor.props(failureBackOffOptions)) |
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
case class Item( | |
id: Option[Long], | |
code: String, | |
name: String, | |
url: String, | |
imageUrl: String, | |
price: Int, | |
createAt: DateTime, | |
updateAt: DateTime, | |
users: Seq[User] = Seq.empty |
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
case class User(id: Long, name: Option[String]) | |
object UserDao { | |
def findById(id: Long): Option[User] = { | |
if (id % 3 == 0) | |
Some(User(id, Some("Kaneko"))) | |
else if (id % 5 == 0) | |
Some(User(id, None)) | |
else |
-
Java
- nimbus
-
Scala
- scala-oauth-provider
- pac4j
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 | |
import org.joda.time.DateTime | |
import scalikejdbc.WrappedResultSet | |
import skinny.orm.{ Alias, SkinnyCRUDMapper } | |
case class User( | |
id: Option[Long] = None, | |
name: String, | |
email: String, |
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
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: ArrayTest.scala | |
import scala.Predef$; | |
import scala.collection.mutable.ArrayOps; | |
import scala.runtime.BoxesRunTime; | |
public final class Main$ |
The goal of the the first four chapters was to jump-start application development with Angular.
最初の4つの章の目標は、Angularを使用してアプリケーション開発を開始することでした。
In those chapters we used property bindings, handled events, and applied directives without providing detailed explanations.