Keybase proof
I hereby claim:
- I am di on github.
- I am dustingram (https://keybase.io/dustingram) on keybase.
- I have a public key whose fingerprint is 321D E2BA 9BA7 5C06 AF95 53F6 93D2 B8D4 930A 5E39
To claim this, I am signing this object:
# Using https://packaging.python.org/en/latest/guides/analyzing-pypi-package-downloads/ | |
SELECT | |
file.project, | |
file.version, | |
COUNT(*) AS total_downloads | |
FROM | |
`bigquery-public-data.pypi.file_downloads` | |
WHERE | |
file.project IN ('exotel', | |
'spam', |
starting build "10cc9d38-4ba5-481e-a1a2-a0343996f105" | |
FETCHSOURCE | |
hint: Using 'master' as the name for the initial branch. This default branch name | |
hint: is subject to change. To configure the initial branch name to use in all | |
hint: of your new repositories, which will suppress this warning, call: | |
hint: | |
hint: git config --global init.defaultBranch <name> | |
hint: | |
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and |
import csv | |
from collections import defaultdict | |
import packaging.requirements | |
totals = defaultdict(int) | |
with open('specifiers.csv') as f: | |
reader = csv.reader(f) |
"Documentation, https://github.com/keystroke3/redpaper/wiki",1 | |
django-notifications-hq (>=1.0),5 | |
"Documentation, https://django-model-revisioning.readthedocs.io",4 | |
"Release Management, https://github.com/pycontribs/a2h/releases",1 | |
trixi-slim (>0.1.2.1) ; extra == 'full',1 | |
thespian (==3.5.2),2 | |
pantsbuild.pants.contrib.node (==1.18.0rc1),1 | |
mailinglogger,3 | |
tabulator (>=1.38),1 | |
smmap (>=0.8.0),2 |
select | |
version, | |
count(version), | |
max(created) as version_count | |
from | |
releases | |
group by | |
version | |
order by | |
version_count desc; |
(env) /tmp $ python --version | |
Python 2.7.14 | |
(env) /tmp $ python -c "import html" | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
ImportError: No module named html | |
(env) /tmp $ pip install future | |
Collecting future | |
Installing collected packages: future | |
Successfully installed future-0.17.0 |
import os | |
from flask import Flask, request | |
from werkzeug.utils import secure_filename | |
app = Flask(__name__) | |
app.config['UPLOAD_FOLDER'] = '.' | |
@app.route('/', methods=['POST']) | |
def upload_file(): | |
file = request.files['filedata'] |
import cv2 | |
import numpy as np | |
img = cv2.imread("coins.png", cv2.IMREAD_GRAYSCALE) | |
circles = cv2.HoughCircles( | |
img, | |
cv2.cv.CV_HOUGH_GRADIENT, | |
dp=1.5, | |
minDist=30, |
I hereby claim:
To claim this, I am signing this object:
class Date: | |
def __init__(self, day, month): | |
self.day = day | |
self.month = month | |
def __repr__(self): | |
return "(%d, %s)" % (self.day, self.month) | |
dates = [ | |
Date(15, 'may'), | |
Date(16, 'may'), |