Skip to content

Instantly share code, notes, and snippets.

View khaeru's full-sized avatar

Paul Natsuo Kishimoto khaeru

View GitHub Profile
@khaeru
khaeru / toggl_import.py
Last active November 30, 2024 04:34
Toggl → Timewarrior import extension
#!/usr/bin/env python3
"""Toggl → Timewarrior import extension
© 2016 Paul Natsuo Kishimoto <[email protected]>
Licensed under the GNU GPL v3 or later.
Implements a Timewarrior extension (see
https://taskwarrior.org/docs/timewarrior/index.html) to import data from Toggl
(http://toggl.com).

Keybase proof

I hereby claim:

  • I am khaeru on github.
  • I am paulnatsuo (https://keybase.io/paulnatsuo) on keybase.
  • I have a public key whose fingerprint is EB2C 9E86 96D5 EB2C 9C66 428B 61A1 338E 4CE1 9468

To claim this, I am signing this object:

@khaeru
khaeru / fair.py
Last active December 23, 2015 18:59
Team-case matching for ESD.801 Fall 2013
from numpy import *
T = 8 # number of teams
C = 3 # cases per team
# preferences of the teams
# p = array([random.permutation(range(T)) for i in range(T)]) # for testing
p = array([
[4, 5, 6, 1, 2, 7, 8, 3], # abdulla
[8, 4, 2, 1, 6, 7, 5, 3], # accuardi