I hereby claim:
- I am Zweedeend on github.
- I am kallgaard (https://keybase.io/kallgaard) on keybase.
- I have a public key whose fingerprint is 87DE 8D71 8BE6 0F5C 6926 CEED 0E31 A114 FF3E 2D04
To claim this, I am signing this object:
import math | |
from operator import sub, add, mul | |
def hexagonal_to_cubic(col, row): | |
x = col - row // 2 | |
z = row | |
y = 0 - x - z | |
return x, y, z |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
from ncclient.manager import connect_ssh | |
# use unencrypted keys from ssh-agent or ~/.ssh keys, and rely on known_hosts | |
with connect_ssh("192.168.3.3", username="stuart") as manager: | |
assert(":url" in manager.server_capabilities) | |
with manager.locked("running"): | |
# create a new checkpoint | |
manager.copy_config(source="running", target="file:///new_checkpoint.conf") |
import numpy as np | |
import matplotlib.pylab as pl | |
from scipy.optimize import curve_fit | |
import requests | |
import os.path | |
data_file = 'key-countries-pivoted.csv' | |
if not os.path.exists(data_file): | |
url = "https://raw.githubusercontent.com/datasets/covid-19/master/data/key-countries-pivoted.csv" |
I hereby claim:
To claim this, I am signing this object:
class Santa: | |
boxes = {} | |
def __setattr__(self, key, value): | |
super(Santa, self).__setattr__("label", key) | |
self.boxes.setdefault(hash(self), {})[key] = value | |
def __getattr__(self, item): | |
super(Santa, self).__setattr__("label", item) | |
return self |