Skip to content

Instantly share code, notes, and snippets.

View emgullufsen's full-sized avatar
Mariners

Eric Gullufsen emgullufsen

Mariners
View GitHub Profile
;; eg
;; sicp 3.3.3 - 2D tables
;; exercise 3.25 done baby!
(define (assoc key records)
(cond ((null? records) false)
((equal? key (caar records)) (car records))
(else (assoc key (cdr records)))))
(define (make-subtable keys value)
(if (null? (cdr keys))
;; SICP Exercise 3.22
;; Queue structure implemented as a procedure with local state
;; Rik G. - September 2020
(define (make-queue)
(let ((front-ptr '())
(rear-ptr '()))
(define (dispatch m)
(cond ((eq? m 'insert)
(lambda (z)
(let ((new-pair (cons z '())))
@emgullufsen
emgullufsen / AK_BALL.db
Last active November 29, 2016 14:41
A python script / module for fetching some basketball data from Alaska School Activities Association at asaa.org.
# Eric Gullufsen
# Visualize the central limit theorem
# take 10, 50, 100, 1000 random samples of size ten of integers in [0, 10]
# take average of each one
# plot these
# the resulting probability density function will look incresingly 'normal'
# as n increases - the number of samples taken