Skip to content

Instantly share code, notes, and snippets.

View rs2's full-sized avatar
💭
typing...

Pav A rs2

💭
typing...
  • @rootsumsquared
  • London
View GitHub Profile
import typing
from collections import namedtuple
from string import ascii_lowercase
Moves = namedtuple('Moves', 'dxs, dys, free')
Pos = typing.Tuple[int, int]
Board = typing.Dict[Pos, str]
BOARD_SIZE = 4
@rs2
rs2 / my_module.py
Last active May 17, 2018 20:10
PyDojoE9S9
import sitecustomize
foobar = 42
print(foo)
# Prints
# name 'foo' is not defined
# Did you mean foobar?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rs2
rs2 / mondrian.ipynb
Created October 27, 2013 20:06
Piet Mondrian in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.