!SLIDE
This file contains 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
$ cowsay 焼肉たべたい | |
____________________ | |
< 焼肉たべたい > | |
-------------------- | |
\ ^__^ | |
\ (oo)\_______ | |
(__)\ )\/\ | |
||----w | | |
|| || | |
$ |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<objects xmlns="http://www.springframework.org/springpython/schema/objects/1.1" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/springpython/schema/objects/1.1 | |
http://springpython.webfactional.com/schema/context/spring-python-context-1.1.xsd"> | |
<object id="greeting" class="example1.GoodBye" /> | |
</objects> |
This file contains 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 com.github.tototoshi.sample | |
import scala.collection.JavaConversions._ | |
import org.springframework.context.annotation.Configuration | |
import org.springframework.context.annotation.Bean | |
import org.springframework.context.annotation.AnnotationConfigApplicationContext | |
@Configuration | |
class AppConfig { |
This file contains 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 sbt._ | |
import sbt.Keys._ | |
object EchoBuild extends Build { | |
lazy val echo = Project( | |
id = "echo", | |
base = file("."), | |
settings = Project.defaultSettings ++ Seq( | |
name := "echo", |
This file contains 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 controllers | |
import play.api._ | |
import play.api.mvc._ | |
import play.api.http._ | |
import play.api.libs.iteratee._ | |
import play.api.libs.iteratee.Input._ | |
import net.liftweb.json.{ JValue => LiftJValue, _ } |
This file contains 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
scala> import play.api.libs.json._ | |
import play.api.libs.json._ | |
scala> import play.api.libs.json.Generic._ | |
import play.api.libs.json.Generic._ | |
scala> case class User(id: Long, name: String, age: Int) | |
defined class User | |
scala> implicit def userFormat: Format[User] = productFormat3("id", "name", "age")(User.apply)(User.unapply) |
This file contains 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 com.github.tototoshi.finagle_hack | |
import java.net.InetSocketAddress | |
import com.twitter.finagle.{Service, SimpleFilter} | |
import com.twitter.util.Future | |
import com.twitter.finagle.builder.{Server, ServerBuilder} | |
import com.twitter.finagle.http._ | |
import com.twitter.finagle.http.path._ | |
object HTTPServer { |
This file contains 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 o = Some(("foo", 1)) | |
for { | |
(s, i) <- o | |
} yield { | |
println(s) | |
println(i) | |
} |
This file contains 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 org.specs2.mutable._ | |
class AfterComposeSpec extends Specification { | |
"Compose After" should { | |
"after123" in (After1 then After2 then After3){ | |
success | |
} |