Skip to content

Instantly share code, notes, and snippets.

View jasharpe's full-sized avatar

Jeremy Sharpe jasharpe

View GitHub Profile
import math
class Ray(object):
def __init__(self, origin, direction):
self.origin = origin
self.direction = direction
class Point(object):
def __init__(self, x, y, z):
self.x = x
@jasharpe
jasharpe / patch
Created August 22, 2011 16:07
Patch fixing pygame Sysfont infinite loop
diff -r fe49604b5709 lib/sysfont.py
--- a/lib/sysfont.py Fri Aug 19 18:14:22 2011 -0700
+++ b/lib/sysfont.py Mon Aug 22 12:05:57 2011 -0400
@@ -581,14 +581,25 @@
if not styles:
styles = Sysalias.get(name)
if styles:
- while not fontname:
- plainname = styles.get((False, False))
- fontname = styles.get((bold, italic))