This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ Find solutions for the n-box problem. Solutions are represented as | |
| a list of box indices for each integer. Partial sums are cached and | |
| passed around. """ | |
| from copy import copy | |
| from sys import argv,stderr | |
| import random | |
| n_boxes = int(argv[1]) |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| from itertools import islice | |
| import re | |
| import requests | |
| from bs4 import BeautifulSoup | |
| if __name__ == '__main__': | |
| stat_soup = BeautifulSoup(requests.get("https://stats.lineageos.org/").content, "lxml") | |
| code_soup = BeautifulSoup(requests.get("https://wiki.lineageos.org/devices/").content, "lxml") |
OlderNewer