Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
typing...

Pav A rs2

💭
typing...
  • @rootsumsquared
  • London
View GitHub Profile
View solitaire_chess.py
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
PyDojoE9S9
View my_module.py
import sitecustomize
foobar = 42
print(foo)
# Prints
# name 'foo' is not defined
# Did you mean foobar?
View smart-beta.ipynb
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 Oct 27, 2013
Piet Mondrian in Python
View mondrian.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.