Skip to content

Instantly share code, notes, and snippets.

View kazzna's full-sized avatar

Kazunari Mori kazzna

  • Yokohama, Japan
View GitHub Profile
@kazzna
kazzna / Test.scala
Created April 22, 2015 22:38
Iteratee
package controllers
object Test extends App {
def contains(string: String): Iteratee[Array[Byte], Boolean] = contains(string.getBytes)
def contains(string: Array[Byte]): Iteratee[Array[Byte], Boolean] = {
sealed trait Matching
case class InProgress(index: Int) extends Matching
case object Failure extends Matching
case object Completed extends Matching
@kazzna
kazzna / kernel.config-forDocker
Created February 16, 2015 14:38
Kernel's .config file when I succeed to compile app-emulation/docker.
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.17.8-gentoo-r1 Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
@kazzna
kazzna / InSQL.scala
Created September 15, 2013 10:31
SQL IN statement for anorm's prepared statement. It is Originally from http://nineofclouds.blogspot.jp/2013/04/in-clause-with-anorm.html. I just changed it for my usage.
package models
import anorm._
/**
* SQL with IN statement
* User: kazzna
* Date: 13/09/07
* Time: 17:29
* Original code is from http://nineofclouds.blogspot.jp/2013/04/in-clause-with-anorm.html