Skip to content

Instantly share code, notes, and snippets.

View Kodiologist's full-sized avatar

Kodi Arfer Kodiologist

View GitHub Profile
@Kodiologist
Kodiologist / citibank_extra.pl
Created November 22, 2016 21:21
Citibank.com scraping: XYZ_Extra, XXX_Extra
# Compute the values of the extra fields XXX_Extra and
# XYZ_Extra. This requires munging some deliberately
# obfuscated code.
#
# Sometimes XXX_Extra and XYZ_Extra aren't provided (hence the
# "if"), in which case we don't need them.
my %extra_fields;
if ($body =~ m{
<script \s type="text/javascript"> \x0d \x0a
(function .+?)
; https://www.reddit.com/r/mylittleprogramming/comments/335gc2/particularly_perplexing_programming_puzzle_2/
(require kodhy.macros)
(import
[hy [HySymbol]]
[kodhy.util [ret]]
[minesweeper [*]]) ; http://pastebin.com/HgHkuKZj, http://pastebin.com/u0Xg0JGz
(defmacro g [method-name &optional a1 a2]
@Kodiologist
Kodiologist / Neckbeard-Profession
Last active August 29, 2015 14:10
A mod for Cataclysm DDA that adds a Neckbeard profession and a few appropriate items
[
{
"type": "MOD_INFO",
"mod_type": "SUPPLEMENTAL",
"ident": "neckbeard",
"name": "Neckbeard Profession",
"author": "Kodi Arfer",
"description": "Adds a profession for the \"neckbeard\" stereotype.",
"path": "modinfo.json"
@Kodiologist
Kodiologist / Plounge_AMA_Waiting_Simulator.py
Last active August 29, 2015 13:58
Estimate waiting times for the Plounge AMA
from random import randint, choice
waitlist_growths = [2, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 8, 9, 9, 9, 10, 13, 14, 17]
# I took the most recent 166 top-level comments to the AMA
# signup thread, grouped them by week, and counted the size of
# each group.
# http://www.reddit.com/r/MyLittleShellbullet17/comments/1pnhpx/ama_sign_up/cgko9z8?context=5
def howlong(
@Kodiologist
Kodiologist / gender.csv
Last active January 2, 2016 06:19
Raw data from Plounge poll on sex and gender
time sex trans bathroom therapy
2014-01-03T18:03:23 Female No Female No
2014-01-03T18:04:09 Male No Male No
2014-01-03T18:05:19 Male No Male No
2014-01-03T18:05:32 Male No Male No
2014-01-03T18:05:40 Male No Male No
2014-01-03T18:06:14 Male No Male No
2014-01-03T18:06:14 Male No Male No
2014-01-03T18:06:28 Male No Male No
2014-01-03T18:07:42 Male No Male No
@Kodiologist
Kodiologist / turningpoint2blackboard.pl
Created September 10, 2013 16:13
An unfinished program that would have uploaded TurningPoint quiz scores to Blackboard.
#!/usr/bin/perl
use feature 'say';
use warnings;
use strict;
use Archive::Zip;
use XML::Simple 'XMLin';
use List::MoreUtils 'all', 'true', 'firstidx';
# -----------------------------------------------------
@Kodiologist
Kodiologist / GraphViz
Created August 31, 2013 15:28
Plounge recognition graph
digraph {
graph [overlap = "prism", splines = "spline"];
node [width = 2, style = filled, color = cadetblue1];
"-20" -> "2SilentQs";
"-20" -> "Auirc";
"-20" -> "Bandalo";
"-20" -> "BigMacIsNotABurger";