Skip to content

Instantly share code, notes, and snippets.

algebraic data types
- adt
- opeltre/fp
typechecking:
- mypy
- dry-python/returns
- life4/deal
typeclasses:
State 2018 Population
California 39776830
Texas 28704330
Florida 21312211
New York 19862512
Pennsylvania 12823989
Illinois 12768320
Ohio 11694664
Georgia 10545138
North Carolina 10390149
@mlaugharn
mlaugharn / .tmux.conf
Last active May 27, 2019 20:45
nice tmux settings
set -g default-shell /usr/bin/zsh
set -g default-command /usr/bin/zsh
set -g default-terminal "screen-256color"
# act like GNU screen
unbind C-b
set -g prefix C-a
set -g base-index 1
set -s escape-time 0
@mlaugharn
mlaugharn / filters.py
Last active August 29, 2015 14:15
port of filters.py project, it was too hackish to warrant a whole repo
# much (some) of this code isn't mine
import PIL.Image, numpy, scipy.misc, scipy.ndimage, scipy.spatial
import time, sys, random, math, functools, collections
# image = PIL.Image.open("4.2.06.tiff") # sailboat on lake
# image = PIL.Image.open("lena.tiff") # lena
pixel_definition = ["r", "g", "b"] # definition of pixel
# neighborhood_kernel = numpy.array([[1, 1, 1],
# [1, 1, 1],