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
organization := "com.example" | |
name := "unfiltered-sample" | |
scalaVersion := "2.9.1" | |
version := "0.1.0-SNAPSHOT" | |
libraryDependencies ++= Seq( | |
"net.databinder" %% "unfiltered-filter" % "0.6.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
organization := "com.example" | |
name := "unfiltered_netty_sample" | |
scalaVersion := "2.9.1" | |
version := "0.1.0-SNAPSHOT" | |
libraryDependencies ++= Seq( | |
"net.databinder" %% "unfiltered-netty-server" % "0.5.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
『Matching and Responding』 | |
典型的なリクエスト/レスポンスが数行で手近に扱えます。 | |
この項ではシンプルなkey-valueストアを示すために、パターンマッチングとコンビネータ関数を適用します。 | |
■6.a Request Matchers | |
○Methods and Paths | |
UnfilteredはパスセグメントからHTTPメソッドとHTTPヘッダに、広い範囲の“request matchers” - リクエストに対して働く抽出子オブジェクト - を、 | |
供給します。 |
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
#!/usr/bin/env bash | |
echo "Installing docker ..." | |
sudo apt-get update >/dev/null 2>&1 | |
sudo apt-get install -y docker.io >/dev/null 2>&1 | |
source /etc/bash_completion.d/docker.io | |
echo "Updating docker ..." |
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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>MutationObserver Sample</title> | |
<script> | |
/* https://developer.mozilla.org/ja/docs/Web/API/MutationObserver */ | |
document.addEventListener('DOMContentLoaded', start); | |
function start() { |
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 scalaz._ | |
import scalaz.Free._ | |
import scalaz.std.function._ | |
import scalaz.{ Free, ~> } | |
sealed trait Console[A] | |
case object ReadLine extends Console[Option[String]] | |
case class PrintLine(line: String) extends Console[Unit] | |
object Console { |
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
Hello World |