Skip to content

Instantly share code, notes, and snippets.

View madsushi's full-sized avatar
💭
peachy

Chase Christian madsushi

💭
peachy
View GitHub Profile

Keybase proof

I hereby claim:

  • I am madsushi on github.
  • I am madsushi (https://keybase.io/madsushi) on keybase.
  • I have a public key whose fingerprint is 24B1 67E2 F9C1 24EF 30DA 8563 3F26 DADC C50A 14C8

To claim this, I am signing this object:

@madsushi
madsushi / swissbracketgen.py
Last active January 14, 2016 02:12
Generate Swiss-style tournament brackets for teams
import csv
import random
import sys
## The goal is to allow for Swiss-style tournament brackets while avoiding teammmates playing each other
## The players.csv format is 'playername, team, wins, losses' e.g. 'player1, team1, 0, 1'
## Match results are updated directly in players.csv (add a win to the winners, loss to the losers)
## You specify round1/round2/round3 via an argument and it will open the previously-generated roundX.csv files to avoid rematches
## Currently the max round size is 3, player count is 32
@madsushi
madsushi / CDSpy.lua
Created February 26, 2015 04:58
cdspy
-- CastAnnounce
local cast = "%s casts %s!"
local use = "%s uses %s!"
local create_a = "%s creates a %s!"
local create_an = "%s creates an %s!"
local begin = "%s begins a %s!"
local place = "%s places a %s!"
local drink = "%s drinks a %s!"
local beat = "%s beats %s!"
local use_on = "%s uses %s on %s!"
mytesttable = {
["156432"] = {
SpellID = 156432,
CastCriteria = SPELL_CAST_SUCCESS,
CastAnnounce = drink,
FadeCriteria = SPELL_AURA_REMOVED,
-- FadeAnnounce = ,
-- RoleCriteria = ,
@madsushi
madsushi / gal-backup.php
Created January 30, 2015 02:09
Backup pre-Cataclysm Gallery
<?php
include "./simple_html_dom.php";
$url = "http://wow.joystiq.com/2010/11/23/azeroth-in-pictures-before-the-shattering/";
$html = file_get_html($url);
@madsushi
madsushi / wowi-backup.php
Last active August 29, 2015 14:14
Backup WoW Insider posts
<?php
include "./simple_html_dom.php";
$page_min = 1;
$page_max = 39;
for($i = $page_min; $i <= $page_max; $i++){
@madsushi
madsushi / gist:4057698
Created November 12, 2012 05:46
nginx php-fpm config file
server {
listen x.x.x.x:80;
server_name wowgemcheck.com www.wowgemcheck.com;
location / {
root /srv/gemparser/;
index guildselect.php;
if (-f $request_filename) {
break;
}
@madsushi
madsushi / file1.cs
Created April 28, 2012 08:58
tEST gIST
using System;
using JSIL;asdfasdfas
DONGS
using JSIL.Meta;
public static class Program {
public static int x = 10;
public static int y = 20;
@madsushi
madsushi / file1.cs
Created April 28, 2012 08:04
Reflection
// Hello!
using System;
using System.Reflection;
using System.Collections.Generic;
public static class Program {
public static void Main (string[] args) {
Common.Util.ListMembers<MethodInfo>(
typeof(T),