Skip to content

Instantly share code, notes, and snippets.

@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
@jmafc
jmafc / component.json
Last active August 29, 2015 14:02
hello_component - update http://smalljs.org/package-managers/component-part-1/ to work with component@1.0.0-rc5
{
"name": "hello_component",
"dependencies": {
"component/dialog": "~0.2.0"
},
"scripts": ["index.js"]
}