Created 17 Aug 2018
This is a simple installation that I did on my Raspberry Pi. Of course, this is only one of the many reasons to do it.
Here are my requirements:
import math | |
#term = input(">> ").split() | |
stack = [] | |
running = True | |
while running: | |
for t in input(">> ").split(): | |
if t == "exit": | |
running = False | |
break |
import base64 | |
import hashlib | |
import hmac | |
import secrets | |
import time | |
class TOTP: | |
def __init__(self, secret: str): | |
self.secret = secret |
from typing import List | |
def solve(matrix: List[List[float]]) -> List[float]: | |
# check size of matrix | |
n: int = len(matrix) | |
assert n >= 1 | |
assert all(len(row) == n + 1 for row in matrix) | |
# Gaussian elimination |
import math | |
def deg2rad(angle: float) -> float: | |
return (angle % 360) / 180 * math.pi | |
def rad2deg(angle: float) -> float: | |
return (angle * 180 / math.pi) % 360 | |
class Point: | |
def __init__(self, x: float, y: float): |