Skip to content

Instantly share code, notes, and snippets.

View jkransen's full-sized avatar

Jeroen Kransen jkransen

View GitHub Profile
@quelgar
quelgar / ZioInputStreamTest.scala
Last active October 27, 2019 14:44
Inputstream to ZIO Stream of byte chunks.
import java.io.InputStream
import java.nio.file.{Files, Path, Paths}
import scalaz.zio.console.putStrLn
import scalaz.zio.duration._
import scalaz.zio.stream.Stream
import scalaz.zio.stream.Stream.Fold
import scalaz.zio.{App, Chunk, IO, Managed}
@guillaumebort
guillaumebort / 1.sql
Created May 25, 2012 15:17
Play 2.0/Anorm
# --- !Ups
CREATE TABLE users(
email VARCHAR(255) NOT NULL PRIMARY KEY,
name VARCHAR(255)
);
CREATE TABLE subjects(
id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
title LONGTEXT NOT NULL,