Skip to content

Instantly share code, notes, and snippets.

View arfie's full-sized avatar

Hilde arfie

  • CWI
  • The Netherlands
View GitHub Profile
anom BIG RIDDIMZ Destar Hamilcar Jerry. meherethere ruff sweatypete Syniikal
8 7 4 2 1 5 3 6 9
6 1 3 2
7 8 1 3 4 5 2 9 6
9 7 5 1 4 6 3 2 8
9 1 7 4 2 6 3 5 8
5 9 8 2 1 4 3 7 6
5 6 3 7 8 4 9 2 1
5 8 3 4 1 6 2 9 7
5 8 1 2 3 7 4 9 6
#!/usr/bin/env python3
import csv
from math import floor
import sys
if len(sys.argv) < 2:
print('Usage: python stv.py [ballot filename]')
exit()
@arfie
arfie / stat_aggregator.py
Created April 4, 2018 22:08
stat aggregator that can deal with tpl files
#!/usr/bin/env python3
"""
Takes one or more TagPro Analytics matches through standard input, then prints
a CSV file containing aggregated statistics for all players in those games.
"""
import requests
import tagpro_eu
@arfie
arfie / s9ballot.csv
Created January 30, 2017 09:26
ELTP Season 9 Commissioner Votes
team-of-3 Heisy Hyponome LoweJ rickastley
1 2 4 5 3
5 3 1 4 2
1 5 4 2 3
4 1 2 5 3
3 1 4 5 2
1 2 5 4 3
4 3 1 5 2
4 2 1 5 3
1 4 3 5 2
@arfie
arfie / stv.py
Created January 30, 2017 09:25
Single Transferable Vote
#!/usr/bin/env python
from math import floor
import sys
if len(sys.argv) < 2:
print 'Usage: python stv.py [ballot filename]'
exit()
DELIM = ','
@arfie
arfie / tagpro-zoomed-out-flairs.user.js
Created March 19, 2016 13:04
TagPro - show flairs when zoomed out
// ==UserScript==
// @name TagPro show flairs when zoomed out
// @version 0.1
// @author Ruud
// @include http://tagpro-*.koalabeast.com:*
// @include http://*.newcompte.fr:*
// @include http://tangent.jukejuice.com:*
// ==/UserScript==
/* jshint -W097 */
'use strict';
@arfie
arfie / tagpro-animation-fps.user.js
Created February 7, 2016 18:06
TagPro Animation FPS
// ==UserScript==
// @name TagPro Animation FPS
// @namespace http://www.arfie.nl/
// @version 0.1
// @description Allows to change FPS of boosts/portals
// @author Ruud
// @include http://tagpro-*.koalabeast.com:*
// @include http://*.newcompte.fr:*
// @include http://tangent.jukejuice.com:*
// @grant none
@arfie
arfie / tagpro_PingAndLossReporter.user.js
Last active November 6, 2015 17:21 — forked from cr4m3r/tagpro_PingAndLossReporter.user.js
Chats you current ping with "Shift + P" or loss with "Shift + L" in Tagpro.
// ==UserScript==
// @name Tagpro Ping and Loss Reporter
// @namespace http://www.reddit.com/u/slothbear
// @description Reports ping or loss in Tagpro chat (Shift + P, Shift + L)
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://*.newcompte.fr:*
// @license whatever brah!
// @author slothbear / %bodyfat / Ruud
// @version 1.8
@arfie
arfie / tagpro-radians.user.js
Created October 28, 2015 19:18
TagPro Radians
// ==UserScript==
// @name TagPro Radians
// @namespace http://www.arfie.nl
// @version 0.1
// @author Ruud Verbeek
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://*.newcompte.fr:*
// ==/UserScript==
@arfie
arfie / tagpro-afk-warning.user.js
Created October 27, 2015 17:34
TagPro AFK warning
// ==UserScript==
// @name TagPro AFK warning
// @namespace http://www.arfie.nl
// @version 0.1
// @author Ruud Verbeek
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// NewCompte's servers don't have an AFK timeout
// ==/UserScript==