Skip to content

Instantly share code, notes, and snippets.

Jacques Fuentes jpfuentes2

Block or report user

Report or block jpfuentes2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jpfuentes2
jpfuentes2 / Dockerfile
Last active Oct 16, 2018
dropping_the_d_in_ACID
View Dockerfile
FROM postgres:9.6-alpine
LABEL version="9.6"
LABEL author="jpfuentes2@gmail.com"
RUN apk update && apk upgrade --available
RUN apk add build-base git postgresql-dev
ENV POSTGRES_VERSION=9.6
View json4s_ahhhh.scala
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:
View memory.elm
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)
View foo.scala
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
}
View Godeps
github.com/onsi/ginkgo/ginkgo
github.com/onsi/ginkgo
View blah.scala
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 Aug 29, 2015
Introductory resources to Golang
You can’t perform that action at this time.