Skip to content

Instantly share code, notes, and snippets.

@femto113
femto113 / covid-bluffs.html
Last active April 13, 2020 17:48
Plot of COVID-19 cases by state in the style evocative of Joy Division's Unknown Pleasures album cover
<!DOCTYPE html>
<html>
<head>
<style>
/* so body text will match the chart */
ul li { font-family: sans-serif; }
svg {
display: block;
@femto113
femto113 / five-five.py
Created August 5, 2022 03:37
five five-letter words with twenty-five unique letters
# this expects to be run in a directory with a file named "words" with one valid word per line
# for testing I used one found here:
# https://github.com/tabatkins/wordle-list
# On a 2022 MacBook Air this takes about 15 minutes to process
def pick(rack, words):
used_letters = set("".join(rack))
if len(used_letters) > 20:
print(" ".join(rack))
return