Skip to content

Instantly share code, notes, and snippets.

View jclem's full-sized avatar
🪄

Jonathan Clem jclem

🪄
View GitHub Profile
@jclem
jclem / bush.sh
Created January 6, 2023 16:07 — forked from brasic/bush.sh
homer bush
#!/bin/sh
set -euxo
cleanup() {
rm -f 1.mp4 2.mp4 3.mp4 4.mp4 palette.png
}
trap cleanup EXIT
# extend the last frame
@jclem
jclem / BlackjackAssist.exs
Last active July 19, 2016 16:36 — forked from nearbycoder/BlackjackAssist.exs
simple module that helps divy up cards
defmodule BlackjackAssist do
@suits ~w(hearts clubs spades diamonds)
@values ~w(A 2 3 4 5 6 7 8 9 10 J Q K)
def draw_card do
{Enum.random(@suits), Enum.random(@values)}
end
def draw_card({:reshuffle}) do
draw_card