Skip to content

Instantly share code, notes, and snippets.

View ceedubs's full-sized avatar

Cody Allen ceedubs

  • central Indiana, USA
View GitHub Profile
import shapeless._
trait ZipConst[C, L <: HList] {
type Out
def apply(c: C, l: L): Out
}
trait ZipConstAux[C, L <: HList, O <: HList] {
def apply(c: C, l: L): O
}
@ceedubs
ceedubs / FizzBuzz.scala
Created October 17, 2012 11:44
Scala FizzBuzz
object FizzBuzz {
val defaultRules = List(
Rule(3, "fizz"),
Rule(5, "buzz")
)
def main(args: Array[String]) = {
fizzBuzz() foreach(println)
}
@ceedubs
ceedubs / gist:1352742
Created November 9, 2011 19:52 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;