Skip to content

Instantly share code, notes, and snippets.

View gDanix's full-sized avatar

Daniel Trujillo Viedma gDanix

View GitHub Profile
@wibisono
wibisono / SpeakingCreature.scala
Last active March 23, 2018 09:32
Example speaking type class, rewrite from Simplified FP chapter Typeclass 101
// Base type
sealed trait Animal
case class Dog(name:String) extends Animal
case class Cat(name:String) extends Animal
// Type class
trait Speaking [A] {
def speak(creature : A) : String
}
@ryangray
ryangray / buttondown.css
Created February 22, 2012 06:45
A clean, minimal CSS stylesheet for Markdown, Pandoc and MultiMarkdown HTML output.
/*
Buttondown
A Markdown/MultiMarkdown/Pandoc HTML output CSS stylesheet
Author: Ryan Gray
Date: 15 Feb 2011
Revised: 21 Feb 2012
General style is clean, with minimal re-definition of the defaults or
overrides of user font settings. The body text and header styles are
left alone except title, author and date classes are centered. A Pandoc TOC