Skip to content

Instantly share code, notes, and snippets.

View MasterOdin's full-sized avatar

Matthew Peveler MasterOdin

View GitHub Profile
#!/usr/bin/env python2
#
# Find and replace tracker urls in a Deluge torrents.state
import os
import sys
import platform
import shutil
import cPickle
@elliotchance
elliotchance / elevator.py
Created September 10, 2016 08:36
The Elevator Game
import random
import time
class Person:
WAITING = 0
IN_ELEVATOR = 1
DONE = 2
def __init__(self, from_floor, to_floor):
self.from_floor = from_floor