(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Welcome to Scala version 2.10.5 (OpenJDK 64-Bit Server VM, Java 1.6.0_27). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> import rapture.core._ | |
import rapture.core._ | |
scala> val str: String = alloc() // new String() | |
str: String = "" |
Welcome to Scala version 2.10.4 (OpenJDK 64-Bit Server VM, Java 1.6.0_27). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
// Import the Rapture modules we need | |
scala> import rapture._, uri._, codec._, io._, fs._, core._, csv._ | |
import rapture._ | |
import uri._ | |
import codec._ | |
import io._ |
// Define the general Arg type and companion object: | |
import language.higherKinds, language.implicitConversions, language.existentials | |
object Arg { implicit def toArg[Tc[_], T: Tc](t: T): Arg[T, Tc] = Arg(t, implicitly[Tc[T]]) } | |
case class Arg[T, Tc[_]](value: T, typeclass: Tc[T]) | |
// Say, for example we have a typeclass for getting the length of something, with a few instances | |
trait Lengthable[T] { def length(t: T): Int } | |
implicit val intLength = new Lengthable[Int] { def length(i: Int) = 1 } | |
implicit val stringLength = new Lengthable[String] { def length(s: String) = s.length } |
What's Up in Dockerland? | |
dockercon Europe 2014 | |
Ankündigungen | |
- Docker | |
- Docker Machine | |
- "Machine makes it really easy to create Docker hosts on local hypervisors and cloud providers. It creates servers, installs Docker on them, then configures the Docker client to talk to them." | |
- Kapselt unterschiedliche "Driver" und bietet ein einheitliches Interface um die Docker-Ready Maschinen zu deployen |
package com.rr.experiment | |
import org.specs2.ScalaCheck | |
import org.specs2.mutable._ | |
import org.scalacheck._ | |
import scalaz._ | |
import scodec._ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
As compiled by Kevin Wright a.k.a @thecoda
(executive producer of the movie, and I didn't even know it... clever huh?)
please, please, please - If you know of any slides/code/whatever not on here, then ping me on twitter or comment this Gist!
This gist will be updated as and when I find new information. So it's probably best not to fork it, or you'll miss the updates!
Monday June 16th
sealed trait Interact[A] | |
case class Ask(prompt: String) | |
extends Interact[String] | |
case class Tell(msg: String) | |
extends Interact[Unit] | |
trait Monad[M[_]] { | |
def pure[A](a: A): M[A] |
#!/usr/bin/env zsh | |
# in fino veritas | |
# Borrowing shamelessly from these oh-my-zsh themes: | |
# fino-time | |
# pure | |
# https://gist.github.com/smileart/3750104 | |
# Set required options |