Skip to content

Instantly share code, notes, and snippets.

View noloerino's full-sized avatar

Jonathan Shi noloerino

View GitHub Profile

Keybase proof

I hereby claim:

  • I am noloerino on github.
  • I am nolo (https://keybase.io/nolo) on keybase.
  • I have a public key whose fingerprint is C9A7 67BA EF83 4073 3515 CE21 6136 4C58 8E8A 9F80

To claim this, I am signing this object:

@noloerino
noloerino / SHM.py
Last active January 11, 2017 01:36
"""
Simple harmonic motion animation example, version 1
A bunch of stuff doesn't work, and will hopefully be fixed
author: Jonathan Shi
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib.animation as animation
@noloerino
noloerino / pong.py
Last active October 23, 2016 05:25 — forked from pirocks/pong.py
# Jonathan's update 4 on Francis's pong program
# KNOWN BUGS:
# - when the ball strikes on the side of the paddle, weird things happen
# likely explanation is that the refresh rate can't keep up with the speed
# - at high speeds, the ball goes through the boundaries
# - at certain angles, ball will bounce through the lower boundary (cause unknown),
# sometimes one player will be given a point for no apparent reason
# - one square below the right paddle sometimes will register contact
# - starting angle *might* not be in the correct range, not sure about this one
# TO DO: