Skip to content

Instantly share code, notes, and snippets.

View jpfuentes2's full-sized avatar

Jacques Fuentes jpfuentes2

  • Chime
  • Richmond, VA
View GitHub Profile
@jpfuentes2
jpfuentes2 / Dockerfile
Last active October 16, 2018 17:59
dropping_the_d_in_ACID
FROM postgres:9.6-alpine
LABEL version="9.6"
LABEL author="[email protected]"
RUN apk update && apk upgrade --available
RUN apk add build-base git postgresql-dev
ENV POSTGRES_VERSION=9.6
case class Person(name: String)
case class Alias(name: String)
case class PersonWithAliases(p: Person, aliases: List[Alias])
/*
do some merging magic of Person with Alias to produce:
import List
import Set
import Html exposing (text)
type Suit = Hearts | Spades | Clubs | Diamonds
type Value = Two | Three | Four | Five | Six | Seven | Eight | Nine |
Ten | Jack | Queen | King | Ace
type alias Card = (Suit, Value)
import scalaz._
import Scalaz._
trait Read[F] { self =>
def read(f: String): F
}
object Read {
@inline def apply[F](implicit F: Read[F]): Read[F] = F
}
github.com/onsi/ginkgo/ginkgo
github.com/onsi/ginkgo
@jpfuentes2
jpfuentes2 / reactjs.md
Last active September 15, 2016 09:32
Why and intros to React.js
scala> val x: Option[String] = Option[String](null)
x: Option[String] = None
scala> x.isDefined
res0: Boolean = false
scala> x.getOrElse("foo")
res1: String = foo
scala> x.map(_.length)
@jpfuentes2
jpfuentes2 / go.md
Last active August 29, 2015 14:11
Introductory resources to Golang