Skip to content

Instantly share code, notes, and snippets.

View min4builder's full-sized avatar

lieks min4builder

View GitHub Profile
@jorrizza
jorrizza / imgcat.go
Created May 21, 2014 09:43
Show an image in the terminal
package main
import (
"fmt"
"github.com/nfnt/resize"
"image"
"image/color"
_ "image/gif"
_ "image/jpeg"
_ "image/png"
@Hirrolot
Hirrolot / CoC.ml
Last active July 17, 2024 13:27
How to implement dependent types in 80 lines of code
type term =
| Lam of (term -> term)
| Pi of term * (term -> term)
| Appl of term * term
| Ann of term * term
| FreeVar of int
| Star
| Box
let unfurl lvl f = f (FreeVar lvl)