Skip to content

Instantly share code, notes, and snippets.

View jonoabroad's full-sized avatar
🤘
metal

Jonathan Ferguson jonoabroad

🤘
metal
View GitHub Profile
$nix-shell default.nix
warning: dumping very large path (> 256 MiB); this may run out of memory
these derivations will be built:
/nix/store/1dlvhp8xrsndzbf1k8m6mpkjmdfcckxv-validation-1.drv
/nix/store/6a5ik6h63cm7m46c51359hhns3qyzfjh-ghc-8.4.4-with-packages.drv
building '/nix/store/1dlvhp8xrsndzbf1k8m6mpkjmdfcckxv-validation-1.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/v98xbvkyqqpk8cj835br0086brbam5ml-ghc-8.4.4.
unpacking sources
unpacking source archive /nix/store/r053m9l1b45vjpmc3r4gs2wvrxsijr2s-validation-1.tar.gz
@jonoabroad
jonoabroad / Keybase.md
Created June 25, 2017 09:44
Keybase.md

Keybase proof

I hereby claim:

  • I am jonoabroad on github.
  • I am jonoabroad (https://keybase.io/jonoabroad) on keybase.
  • I have a public key ASAhICS4drlpUePDLpHjT27azXtOAwneoLaT8QbBdBhhwQo

To claim this, I am signing this object:

@jonoabroad
jonoabroad / gist:a6465efe48b2825cc28a
Last active August 29, 2015 14:20
Suggested implementation of MultiPart for http4s
final case class Name(value:String) extends AnyVal
sealed trait Part
final case class FormData(name:Name,
content: Entity,
contentType: Option[ContentType] = None ) extends Part
final case class MultiPart(parts: Seq[Part]) {
def boundary = ??? // leaving out implementation for clarity
@jonoabroad
jonoabroad / ZipWith
Created October 30, 2014 00:54
Non terminating scalaz streams zipwith.
import concurrent.duration._
import scalaz.stream._
import scalaz.concurrent._
import org.joda.time.DateTime
/**
* Requires the following libs :