I hereby claim:
- I am nathan-heskia on github.
- I am nathanheskia (https://keybase.io/nathanheskia) on keybase.
- I have a public key ASCYkMAEXN6RSBC0DfSh1379NzPYGoIAhLewZtyHeXFeHAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import base64 | |
import random | |
import socket | |
import ssl | |
import time | |
import sys | |
import _thread | |
opcodes = { | |
'continuation': 0, |
# Something I got too nervous doing in an interview | |
import re | |
def evalexpr(expr): | |
name, operands = expr[0], map(lambda x : int(x), expr[1:]) | |
if name == 'add': | |
return reduce(lambda x, y : x + y, operands, 0) | |
elif name == 'mul': | |
return reduce(lambda x, y : x * y, operands, 1) |