Skip to content

Instantly share code, notes, and snippets.

import logging
import logging.handlers
class MyHandler(logging.StreamHandler):
def emit(self, record):
msg = self.format(record)
print("My Handler", msg)
handler = MyHandler()
@attila0x2A
attila0x2A / rush_hour.py
Created June 11, 2016 22:44
Bidlo code
#!/usr/bin/env python
from collections import deque
from copy import deepcopy
GOAL_CAR_ID = 'X'
BOARD_SIZE = 6
class Car: