Skip to content

Instantly share code, notes, and snippets.

View MiroK's full-sized avatar
😃
Err and err and err

Miroslav Kuchta MiroK

😃
Err and err and err
View GitHub Profile
@Teggy
Teggy / four-solutions-to-a-trivial-problem.hs
Last active September 23, 2022 21:44
A Haskell "transcript" of Guy Steele's talk "Four Solutions to a Trivial Problem" (https://www.youtube.com/watch?v=ftcIcn8AmSY)
{-# LANGUAGE TypeSynonymInstances #-}
import Data.Monoid
import Data.Maybe
-- How much water does a "histogram" hold?
--
-- Inspired by Guy Steele's talk "Four Solutions to a Trivial Problem"
-- https://www.youtube.com/watch?v=ftcIcn8AmSY
@GlassGhost
GlassGhost / derive.ss
Created October 27, 2014 02:56
SICP Simplifier
#!/usr/bin/env racket
#lang r5rs
;#!/usr/bin/env scheme-r5rs
;R5RS: goo.gl/z6HMWx SICP-Book: goo.gl/AmyAhS SICP-Video-Lectures: goo.gl/3uwWXK
(define (display-all . vs) (for-each display vs))
;______________________________Work in progress to get SICP code to work in R5RS
;provides the following for compatibilty with SICP
;λ user-initial-environment mapcar atom? true false inc dec nil identity
;the-empty-stream stream-null? cons-stream
(define-syntax λ (syntax-rules () ((_ param body ...) (lambda param body ...))))
@trey
trey / happy_git_on_osx.md
Last active February 18, 2024 10:46
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"