Skip to content

Instantly share code, notes, and snippets.

View bklaas's full-sized avatar

Ben Klaas bklaas

  • Minneapolis, MN
View GitHub Profile
@bklaas
bklaas / process.py
Created March 16, 2024 02:26
Python script to process copypasta from leaguelobster's round robin generator
from pprint import pprint
class Week:
def __init__(self, week):
self.week = week
def __str__(self):
matches = []
for t in self.week:
matches.append(f"{t[0]}v{t[1]}")
import csv
def read_csv_reverse(filepath):
with open(filepath, mode='r') as file:
reader = csv.reader(file)
rows = list(reader)
return reversed(rows)
rows_reversed = read_csv_reverse('bklaas.csv')
@bklaas
bklaas / gist:5f93da478e01af48016c1f3b5025281c
Last active March 1, 2022 15:42
nyt wordle words in alphabetical order
aback
abase
abate
abbey
abbot
abhor
abide
abled
abode
abort
### Keybase proof
I hereby claim:
* I am bklaas on github.
* I am bklaas (https://keybase.io/bklaas) on keybase.
* I have a public key ASADOuVDrqq8JK3cV6_P3qBidb-0LkZfQjT67NAstAVaXQo
To claim this, I am signing this object:
@bklaas
bklaas / blitz-perl demo
Created August 10, 2011 21:13
A demo script for running a sprint and/or rush using the CPAN module Blitz
#!/usr/bin/perl
use strict;
$| = 1;
use Blitz;
use Data::Dumper;
my $blitz = Blitz->new( {
username => '[email protected]',