Skip to content

Instantly share code, notes, and snippets.

View bishboria's full-sized avatar

Stuart Gaλe bishboria

View GitHub Profile
@bishboria
bishboria / git-stashes.sh
Created February 21, 2016 08:45
Find all git stashes
find . -iname .git | xargs -I % sh -c 'cd %/..; pwd; git stash list | sed "s/^/ /"'
; Minimal "object oriented" scaffolding
(define (object methods)
(lambda (label method-parameters)
((cdr (assoc label methods)) method-parameters)))
; declaration: easily do funkier state stuff here
(define (person name dob)
(object `( (name . ,(lambda () name))
(age . ,(lambda (today) (- today dob)))))) ; absolute nonsense, but an example of param passing