Skip to content

Instantly share code, notes, and snippets.

@reinderien
reinderien / particle math.txt
Created December 21, 2017 16:05
Particle Math (Advent 2017 20.1)
2
min[lim t→∞ ∑ | p_i + ∫v_i dt + ∫∫a_i dt |
i=0
2
~ min[ ∑ |a_i| ]
i=0
from bs4 import BeautifulSoup
from requests import Session
import csv
def ref(head):
return '%s%d' % (chr(ord('A') + theads.index(head)), irow)
sess = Session()
theads = ('Breed Name', 'Tested', 'Passed', 'Failed', 'Percent')