Skip to content

Instantly share code, notes, and snippets.

Joe Abbate jmafc

Block or report user

Report or block jmafc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jmafc
jmafc / component.json
Last active Aug 29, 2015
hello_component - update http://smalljs.org/package-managers/component-part-1/ to work with component@1.0.0-rc5
View component.json
{
"name": "hello_component",
"dependencies": {
"component/dialog": "~0.2.0"
},
"scripts": ["index.js"]
}
@jmafc
jmafc / ellipse_circle.py
Created Feb 8, 2013
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));
View ellipse_circle.py
#!/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
You can’t perform that action at this time.