I hereby claim:
- I am estensen on github.
- I am estensen (https://keybase.io/estensen) on keybase.
- I have a public key ASCpe6FTHkFhQO2UGIgPKsMfbUepSZWRcICID0NcBQhTywo
To claim this, I am signing this object:
git log --format='%an' | sort | uniq -c | sort -nr |
import numpy as np | |
import matplotlib.pyplot as plt | |
a = -1 | |
b = 1 | |
y, x = np.ogrid[-2:2:100j, -2:2:100j] | |
fig = plt.figure() | |
ax = fig.add_subplot(1, 1, 1) |
I hereby claim:
To claim this, I am signing this object:
history | cut -c8- | cut -d' ' -f1 | sort | uniq -c | sort -nr | head -n20 |
import math | |
f = lambda n:sum(math.gcd(n,x)<2for x in range(n)) | |
print(f(500)) # 200 |
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d |
def rotr(num, bits): | |
num &= (2 ** bits-1) | |
bit = num & 1 | |
num >>= 1 | |
if bit: | |
num |= (1 << (bits-1)) | |
return num | |
numr = 1 |
import os, sys | |
from PIL import Image | |
new_size = (128, 128) | |
for infile in sys.argv[1:]: | |
outfile = os.path.splitext(infile)[0] + "_thumbnail.jpg" | |
if infile != outfile: | |
try: | |
image = Image.open(infile) |