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 sys | |
import re | |
from anytree import Node, RenderTree | |
MAX_NODES = 500 | |
def parse_tree_output(lines): | |
root = Node("root") | |
stack = [root] | |
prev_indent = -1 |
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
{ | |
"keywords": [ | |
{ | |
"name": "lens", | |
"url": "macrorails.com/lens", | |
"category": "Camera Brand" | |
}, | |
{ | |
"name": "Nikon", | |
"url": "macrorails.com/nikon", |
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
/// twitch-videoad.js | |
const origFetch = window.fetch; | |
window.fetch = (url, init, ...args) => { | |
if (typeof url === "string") { | |
if (url.includes("/access_token")) { | |
url = url.replace("player_type=site", "player_type=site"); | |
} else if ( | |
url.includes("/gql") && | |
init && | |
typeof init.body === "string" && |
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 | |
##download to disk | |
##wget -r -l 1 http://www.bikesdirect.com/products/road_bikes.htm | |
echo "<html><body>" | |
for sz in $(seq 49 64); | |
do | |
echo "<a href="size/${sz}/avail.txt">Size $sz:</a><br/>" | |
mkdir -p size/$sz; |