Skip to content

Instantly share code, notes, and snippets.

View mattmight's full-sized avatar

Matthew Might mattmight

View GitHub Profile
@mattmight
mattmight / hide-gmail-inbox.js
Created August 6, 2021 22:14
A Tampermonkey script to hide the gmail inbox to prevent being distracted
// ==UserScript==
// @name Temporarily hide gmail inbox at first
// @namespace http://matt.might.net/
// @version 0.1
// @description Intended to prevent being distracted by your inbox if you meant to send an email or search your inbox. Mouse over the Gmail in upper left to make it re-appear.
// @author Matt Might
// @match https://mail.google.com/mail/u/0/
// @icon https://www.google.com/s2/favicons?domain=google.com
// @grant none
// ==/UserScript==
#lang racket
(define verbose-mode (make-parameter #f))
(define input-file
(command-line
#:program "splain"
@mattmight
mattmight / lambda-reduce.rkt
Created December 4, 2014 15:32
A syntactic-reduction-based interpreter for the lambda-calculus
#lang racket
; A simple CBV syntactic reduction machine for the lamda-calculus.
; + numbers
; <exp> ::= <var>
; | <num>
; | (λ (<var>) <exp>)
; | (+ <exp> <exp>)
@mattmight
mattmight / pythedral.py
Created December 2, 2014 22:48
Church Python
# Void
VOID = lambda void: void
# Booleans / Conditionals
IF = lambda c: lambda t: lambda f: c(t)(f)