These two lines download the 10 year nominal yields on US government bonds from the Federal Reserve. The 10 year government bond yield is considered a standard indicator of long-term interest rates. It was inspired by this repo.
This file contains hidden or 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 python | |
# dfget gets URL and interprets interactively selected table as Pandas DataFrame | |
import inquirer | |
import requests | |
import sys | |
import IPython | |
import pandas as pd |
This file contains hidden or 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 | |
from gpiozero import LED | |
from time import sleep | |
pin_trigger = LED('BOARD13') | |
pin_focus = LED('BOARD11') | |
sleep_min = .1 | |
def trigger(): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
# Unlock ssh keys using passphrases stored in keepassxc database | |
if [[ $# -lt 2 ]]; then | |
echo -e "Usage:\n${0##*/} KEEPASS_DB KEY_DIR" | |
exit 1 | |
fi | |
# Some variables | |
kpdb="$1" |
Install pup and mpv, place somewhere and execute. It gives a menu like the following that allows you to select the station:
Getting radio stations...
-#O=# # #
1) doomed 12) gsclassic 23) 7soul 34) missioncontrol
2) dronezone 13) synphaera 24) seventies 35) sf1033
3) deepspaceone 14) n5md 25) u80s 36) scanner
Install git and mpv, place somewhere and execute. It gives a menu like the following that allows you to select the set:
1) [15 Jahre Chaosdorf] Couchsofa - Spaaaaaace 79) [gpn17] Morelle
2) [18 Jahre Chaosdorf] vidister - Topfschlagen an der Tschunkbar 80) [gpn17] Rio
3) [20 Jahre Chaosdorf] Couchsofa - Der Gute Stoff Muss Brennbar Sein 81) [gpn17] Tasmo
4) [20 Jahre Entropia] Couchsofa - Peleus and Thetis 82) [gpn18] Alexeyan - I Made the Nerds Dance
5) [29c3] Tasmo - Poppen Pt2 83) [gpn18] Bam - Deployment Day
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
# Dump waboorrt game logs | |
rid=0 | |
lid= | |
mkdir -p data | |
if [[ ! -f data/ids.lst ]]; then | |
echo -n > data/ids.lst | |
echo -n > data/elo.jsonl | |
echo -n "Downloading ids" | |
while [[ "$rid" != "$lid" ]]; do |