Skip to content

Instantly share code, notes, and snippets.

View alexcoco's full-sized avatar

Alex Coco alexcoco

  • Canada
View GitHub Profile
@nsimmons
nsimmons / ReactNative-Deep-Dive.md
Last active October 9, 2023 07:48
ReactNative Deep Dive

Things that programmers don't know but should

(A book that I might eventually write!)

Gary Bernhardt

I imagine each of these chapters being about 2,000 words, making the whole book about the size of a small novel. For comparison, articles in large papers like the New York Times average about 1,200 words. Each topic gets whatever level of detail I can fit into that space. For simple topics, that's a lot of space: I can probably walk through a very basic, but working, implementation of the IP protocol.

@Janiczek
Janiczek / memoize.hs
Created September 14, 2012 00:05
Haskell memoization
-- from http://www.nadineloveshenry.com/haskell/memofib.html#memoize
-- had some problems when function had more arguments though, so saving this for future me :)
import Debug.Trace
import Data.Map as Map
import Control.Monad.State.Lazy as State
--------------------------------------------
type StateMap a b = State (Map a b) b