Skip to content

Instantly share code, notes, and snippets.

View djaychela's full-sized avatar

Darren Jones djaychela

View GitHub Profile
@djaychela
djaychela / repo_stats.py
Created May 30, 2018 16:49
Get GH user's most popular repos
from collections import namedtuple
from github import Github
gh = Github()
print(gh.rate_limiting)
Repo = namedtuple('Repo', 'name stars forks')
from data_read import read_file
sensor_raw = read_file("15.txt")
def manhattan(p, q):
distance = 0
for p_i,q_i in zip(p,q):
distance += abs(p_i - q_i)
return distance