Skip to content

Instantly share code, notes, and snippets.

View dswistowski's full-sized avatar
🐍
tap tap tap

Damian Świstowski dswistowski

🐍
tap tap tap
View GitHub Profile
from functools import singledispatch
from typing import Any
from typing import Iterator
from typing import Mapping
from typing import Tuple
from typing import Union
d = {'a': 'b', 'the-list': [{'l1a': 'd', 'l1b': 'd2'}, {'l2': 'e'}], 'n1': {'n2': {'n3a': 'f', 'n3b': 'g'}}, 'bad-list': ['42']}
NOT_EXISTING_KEY = '😟'
@dswistowski
dswistowski / robot.js
Created December 4, 2012 13:56
Smiley
var playerID;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
playerID = robot.id;
//robot.clone();
};
Robot.prototype.onIdle = function(ev) {