Skip to content

Instantly share code, notes, and snippets.

View undergroundmonorail's full-sized avatar

undergroundmonorail

View GitHub Profile
@undergroundmonorail
undergroundmonorail / gist:7e7a6a9033725b0cb346
Created May 16, 2014 14:04
My (non-spoilery) solution for Project Euler problem 32
#!/bin/python2
def decrypt(message, key):
o = []
for c in map(int, message.split()):
o.append(c^key % 10)
key = str(key)
key = int(key[1:] + key[0])
return o
// ==UserScript==
// @name TagPro Chat Macros Userscript
// @namespace http://www.reddit.com/user/contact_lens_linux/
// @description Help your team with quick chat macros.
// @include http://tagpro-*.koalabeast.com:*
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @author steppin, Watball, Some Ball -1, monorail
// @version 0.4
// ==/UserScript==
// ==UserScript==
// @name TagPro Cursor Hider
// @namespace http://www.reddit.com/u/undergroundmonorail
// @description Hides the cursor after a specified amount of time with no movement
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://maptest.newcompte.fr:*
// @include http://justletme.be:*
// @license WTFPL; http://www.wtfpl.net/txt/copying/
// @author monorail
// ==UserScript==
// @name TagPro Speech To Text
// @namespace http://www.reddit.com/u/undergroundmonorail
// @description Say a message out loud to say it into chat.
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://maptest.newcompte.fr:*
// @include http://justletme.be:*
// @license MIT
// @author monorail
// ==UserScript==
// @name TagPro Teams Decapitalized
// @namespace http://www.reddit.com/u/undergroundmonorail
// @include http://tagpro-*.koalabeast.com*
// @include http://tangent.jukejuice.com*
// @exclude http://tagpro-*.koalabeast.com/groups/*
// @exclude http://tangent.jukejuice.com/groups/*
// @license WTFPL
// @author monorail
// @version 1.1.0
catstats = (function(catstats) {
var team = ["a","b","c","d","e"];
var removeDuplicates = function(a) {
var seen = {};
return a.filter(function(item) {
return seen.hasOwnProperty(item) ? false : (seen[item] = true);
});
}
// ==UserScript==
// @name SCP Name Display
// @namespace http://reddit.com/u/undergroundmonorail
// @version 1.4
// @description Show a skip's name in the title of its page
// @match *://www.scp-wiki.net/scp-*
// @match *://scp-wiki.wikidot.com/scp-*
// @match *://www.scp-wiki.net/random:random-scp
// @match *://scp-wiki.wikidot.com/random:random-scp
// @grant GM_xmlhttpRequest
// ==UserScript==
// @name Orange Neopet Health
// @namespace http://www.reddit.com/u/undergroundmonorail
// @version 0.1
// @description yellow is hard to read. make your neopet's worrying-but-not-critical health show up orange instead
// @author monorail
// @match http://www.neopets.com/*
// ==/UserScript==
(function(){
// ==UserScript==
// @name TagPro UI Upgrade
// @include http://*.newcompte.fr*
// @include http://tagpro.gg*
// @include http://tagpro.koalabeast.com*
// @include http://capturetheflag.us*
// @include http://tagpro-*.koalabeast.com*
// @version 1.0
// @description Script that modifies the css of TagPro pages
// @author SuperSans
import sys
if len(sys.argv)!=2:
print 'Usage: golfer.py <file>'
exit(1)
filename = sys.argv[1]
code = []