Skip to content

Instantly share code, notes, and snippets.


Jacques Fuentes jpfuentes2

View GitHub Profile
jpfuentes2 / Dockerfile
Last active Oct 16, 2018
View Dockerfile
FROM postgres:9.6-alpine
LABEL version="9.6"
LABEL author=""
RUN apk update && apk upgrade --available
RUN apk add build-base git postgresql-dev
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
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
jpfuentes2 /
Last active Aug 29, 2015
Introductory resources to Golang