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 Disable display math in comments | |
// @namespace https://github.com/vyznev/ | |
// @description Forces all MathJax elements in comments to be rendered inline | |
// @author Ilmari Karonen | |
// @version 1.1 | |
// @match *://*.stackexchange.com/* | |
// @match *://*.mathoverflow.net/* | |
// @homepageURL http://meta.math.stackexchange.com/questions/23250/disable-display-math-in-comments | |
// @grant none |
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 Stack Exchange hotness estimator | |
// @namespace http://vyznev.net/ | |
// @description Estimates how highly each Stack Exchange question would rank on the Hot Network Questions list | |
// @author Ilmari Karonen | |
// @version 0.4.3 | |
// @license Public domain | |
// @homepageURL https://meta.stackexchange.com/a/284933 | |
// @downloadURL https://gist.github.com/vyznev/bb2c1adb6e96eb65a87bab3822c74e81/raw/se_hotness_estimator.user.js | |
// @match *://*.stackexchange.com/questions/* |
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 Stack Exchange timeline link | |
// @namespace http://vyznev.net/ | |
// @description Adds a link to the question timeline on Stack Exchange | |
// @include *stackexchange.com/questions/* | |
// @include *stackoverflow.com/questions/* | |
// @include *superuser.com/questions/* | |
// @include *serverfault.com/questions/* | |
// @include *stackapps.com/questions/* | |
// @include *mathoverflow.net/questions/* |
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 Incremental Markdown Preview for Stack Exchange | |
// @namespace https://github.com/vyznev/ | |
// @description Speeds up the live Markdown preview on Stack Exchange sites by only updating changed DOM nodes | |
// @author Ilmari Karonen | |
// @version 0.1.0 | |
// @copyright 2017-2018, Ilmari Karonen | |
// @license ISC; https://opensource.org/licenses/ISC | |
// @match *://*.stackexchange.com/* | |
// @match *://*.stackoverflow.com/* |
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 | |
""" | |
This script converts hexagonal isotropic (possibly non-totalistic) CA rules[1] | |
into the equivalent MAP rules[2]. It runs under both Python 2 and Python 3, and | |
can be used either as a stand-along script (with the rules given as command line | |
arguments) or as a Golly plug-in. | |
[1]: http://www.conwaylife.com/wiki/Isotropic_non-totalistic_Life-like_cellular_automaton#Hexagonal_neighbourhood | |
[2]: http://golly.sourceforge.net/Help/Algorithms/QuickLife.html | |
""" |
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 | |
import re | |
import sys | |
import argparse | |
def fail(msg): | |
sys.stderr.write(sys.argv[0] + ": " + msg + "\n") | |
sys.exit(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
#!/usr/bin/python | |
neumann2moore = { | |
"0": {0: "", 1: "c", 2: "cn", 3: "c", 4: "c"}, | |
"1": {1: "e", 2: "ka", 3: "inyq", 4: "ny", 5: "e"}, | |
"2e": {2: "e", 3: "kaj", 4: "kaqw", 5: "kaj", 6: "e"}, | |
"2i": {2: "i", 3: "r", 4: "itz", 5: "r", 6: "i"}, | |
"3": {3: "e", 4: "jr", 5: "inyq", 6: "ka", 7: "e"}, | |
"4": {4: "e", 5: "c", 6: "cn", 7: "c", 8: ""} | |
} |
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 | |
import re | |
import sys | |
import argparse | |
parser = argparse.ArgumentParser(description='Generate LLS rule dict to search multiple isotropic CA rules on the 4-cell von Neumann neighborhood.') | |
parser.add_argument('minrule', help='minimum rule string (e.g. B0/S)') | |
parser.add_argument('maxrule', nargs='?', help='maximum rule string (e.g. B0234/S01)') | |
parser.add_argument('-t', '--totalistic', action='store_true', help='consider only (outer) totalistic rules, i.e. treat 2e and 2i as equivalent') |
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 Stack Exchange Bounty Bar | |
// @namespace https://github.com/vyznev/ | |
// @description Shows a randomized selection of bountied questions in the Stack Exchange sidebar | |
// @author Ilmari Karonen | |
// @version 0.0.19 | |
// @copyright 2018, Ilmari Karonen | |
// @license ISC; https://opensource.org/licenses/ISC | |
// @match *://*.stackexchange.com/* | |
// @match *://*.stackoverflow.com/* |