This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
from github import Github | |
gh = Github() | |
print(gh.rate_limiting) | |
Repo = namedtuple('Repo', 'name stars forks') | |