Skip to content

Instantly share code, notes, and snippets.

View VitamintK's full-sized avatar
🆒

Kevin Wang VitamintK

🆒
View GitHub Profile
@VitamintK
VitamintK / A.py
Created May 18, 2019 16:36
google codejam round 2 2019
T = int(input())
for t in range(T):
n = int(input())
mols = []
for i in range(n):
c, j = map(int, input().split())
mols.append((c,j))
SMALL_NUM = 1/5123456789
slopes = [1+SMALL_NUM, 1-SMALL_NUM]
@VitamintK
VitamintK / gravity_tidal_force_demo.py
Created January 19, 2021 22:05
trying to visualize tides/tidal forces/gravity/why there are two high tides on earth
from manim import *
import math
dots_per_row = 120
moon = (10,0)
m2 = 10
G = 1
class MovingDot(Dot):
def __init__(self, *args, **kwargs):