Skip to content

Instantly share code, notes, and snippets.

View jfischoff's full-sized avatar
™️
Jonathaning

Jonathan Fischoff jfischoff

™️
Jonathaning
View GitHub Profile
@sjoerdvisscher
sjoerdvisscher / 1d
Created August 11, 2012 11:16
A total map as a zipper of an infinite perfect binary tree
-1 0 1 2 3 4 5
\ / \\/ \ / \ /
\ // \ /
\ // \ /
\\ /
\\ /
\\ /
\\/
//
//
@sjoerdvisscher
sjoerdvisscher / Poly.hs
Created July 11, 2012 22:15
Converting Conor McBride's Polynomial datatype to raising/falling factorial base.
{-# LANGUAGE FlexibleInstances, DeriveFunctor #-}
import Control.Applicative
import Data.Unfolder
import Data.Unfoldable
import Data.Ratio
import Test.QuickCheck hiding (choose)
class Polynomial p where
@jb55
jb55 / RPS.hs
Created July 6, 2012 18:45
teaching a friend Haskell with a nice game of rock paper scissors
import Control.Monad
import Control.Monad.Random
data RPS = Rock | Paper | Scissors
deriving (Show, Eq, Read)
data Result = Win | Lose | Tie
deriving (Show, Eq)
@canton7
canton7 / 0main.md
Last active January 17, 2025 06:09
Local versions of tracked config files

How to have local versions of tracked config files in git

This is a fairly common question, and there isn't a One True Answer.

These are the most common techniques:

If you can modify your application