Skip to content

Instantly share code, notes, and snippets.

View HarrisonGrodin's full-sized avatar

Harrison Grodin HarrisonGrodin

View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 19, 2025 06:54
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@HarrisonGrodin
HarrisonGrodin / univ_map.sml
Last active June 18, 2021 17:17
Universal map in Standard ML
signature UNIV_MAP =
sig
structure Key : sig
type 'a t
val create : unit -> 'a t
end
type t
val empty : t
@HarrisonGrodin
HarrisonGrodin / julia.sml
Last active July 18, 2021 04:11
Simple model of the Julia language in Standard ML via dynamic classification
signature OBJECT =
sig
type 'a tag
type t
val Bool : bool tag
and Int : int tag
and String : string tag
val toString : t -> string
@HarrisonGrodin
HarrisonGrodin / dynamic-dispatch.sml
Created August 13, 2021 06:13
Simple model of Python-style dynamic dispatch in Standard ML via dynamic classification
signature OBJECT =
sig
type 'a tag
type t
val new : unit -> t list tag
and make : 'a tag -> 'a -> t
val get : t -> 'a tag -> 'a
(* primitives *)
@andrejbauer
andrejbauer / wlem.agda
Last active June 19, 2023 04:40
A formal proof that weak excluded middle holds from the familiar facts about real numbers.
{-
Weak excluded middle states that for every propostiion P, either ¬¬P or ¬P holds.
We give a proof of weak excluded middle, relying just on basic facts about real numbers,
which we carefully state, in order to make the dependence on them transparent.
Some people might doubt the formalization. To convince yourself that there is no cheating, you should:
* Carefully read the facts listed in the RealFacts below to see that these are all
just familiar facts about the real numbers.