Skip to content

Instantly share code, notes, and snippets.

{
"name": "hello_component",
"dependencies": {
"component/dialog": "~0.2.0"
},
"scripts": ["index.js"]
}
@jmafc
jmafc / ellipse_circle.py
Created February 8, 2013 14:48
Minimal implementation in Python of C.J.Date's ELLIPSE - CIRCLE type hierarchy. TYPE ELLIPSE POSSREP (A LENGTH, B LENGTH, CTR POINT) CONSTRAINT A >= B); TYPE CIRCLE IS ELLIPSE CONSTRAINT THE_A(ELLLIPSE) = THE_B(ELLIPSE) POSSREP (R = THE_A(ELLIPSE), CTR = THE_CTR(ELLIPSE));
#!/usr/bin/python
class Point(object):
def __init__(self, x, y):
assert isinstance(x, int)
assert isinstance(y, int)
self.x = x
self.y = y