This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import random | |
import sys | |
from collections import defaultdict | |
parser = argparse.ArgumentParser() | |
parser.add_argument("input", nargs="*", default="-", help="source text") | |
parser.add_argument("-n", "--window", type=int, default=3, help="windows size") | |
parser.add_argument( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from collections import defaultdict | |
class StateGraph: | |
"""Dictionary that lets you add keys calculated from other keys | |
When an entry is updated all dependent values update recursively | |
Values may be any type valid for use in a standard dictionary. | |
Keys must be valid names for function arguments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys, re | |
MIN_MATCH=3 | |
MAX_MATCH=9 | |
# The lyrics of "Wet Ass Pussy" by Cardi B | |
target=open(sys.argv[1]).read() | |
# United States House Resolution 2617, Omnibus spending bill for FY2023 | |
reference=open(sys.argv[2]).read().lower() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Use rofi to pick emoji because that's what this | |
# century is about apparently... | |
# | |
# Requirements: | |
# rofi, xsel, xdotool, curl | |
# | |
# Usage: | |
# 1. Download all emoji |