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
// ==UserScript== | |
// @name Quoteblock to forum posts | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-01-15 | |
// @description Add [[quoteblock]]/[[/quoteblock]] widget to forum post editor. | |
// @author You | |
// @match https://tvtropes.org/pmwiki/addpost.php* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tvtropes.org | |
// @grant none | |
// ==/UserScript== |
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 | |
# Data source: https://xkcd.com/1930/ | |
import random | |
import re | |
class Or(list): | |
def __init__(self, *args): |
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/python | |
from HTMLParser import HTMLParser | |
import re | |
import io | |
import sys | |
import datetime | |
import time | |
import httplib | |
from argparse import ArgumentParser |
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/perl | |
my $titlepage = `wget -O - -o download.log http://www.giantitp.com/comics/oots.html`; | |
my %titles; | |
while ($titlepage =~ m'<A href="/comics/oots(\d+)\.html">([^<]*)</A>'sg) { | |
print "$1 $2\n"; | |
$titles{$1} = $2; | |
} | |
LOOP:foreach my $num (sort keys %titles) { | |
my @existingFile = glob "$num*"; |