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
#!/bin/bash | |
#spencer | |
# just run this when i3lock starts | |
d=$(date) | |
sleep 30 | |
if killall -0 i3lock; | |
then | |
echo $d screen locked >> ~/timecard | |
else |
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
-- MIDI Note Event random dropper | |
--- | |
-- This is an example that randomly doesn't let notes through. | |
-- affected MIDI channels | |
-- 0..15 or set to -1 to apply to events on all channels | |
local filter_chan = -1 | |
-- affected note range(s) | |
-- string with comma-separated list of single MIDI note numbers or | |
-- ranges (min-max separated by a dash, whitespace is ignored) |
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 random | |
import string | |
from random import randrange | |
from time import sleep | |
class bcolors: | |
HEADER = '\033[35m' | |
OKBLUE = '\033[34m' | |
OKGREEN = '\033[32m' |
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 | |
#copied from the example at https://scikit-image.org/docs/stable/auto_examples/filters/plot_inpaint.html | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import sys | |
import fitz | |
from skimage.morphology import disk, binary_dilation | |
from skimage.restoration import inpaint | |
from skimage.transform import resize |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Loot of Lima Solo Travel Edition!</title> | |
</head> | |
<body> | |
<iframe src = "https://www.kylegillingham.com/loot/" width = 100% height = "1100"> | |
Sorry your browser does not support inline frames. |
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
#!/bin/bash | |
#make any image seamless by copying it backward (mirrored) and stitching the 2 copies together | |
#works on linux | |
convert $1 -flop tmp.png | |
convert $1 tmp.png +append output.png | |
rm tmp.png | |
feh output.png |