class Deferred(object):
def __init__(self):
self._callbacks = []
def add_callback(self, callback):
if hasattr(self, 'result'):
callback(self.result)
else:
self._callbacks.append(callback)
def callback(self, result):
assert not hasattr(self, 'result')
for cb in self._callbacks:
cb(result)
self.result = result
def defer(result):
d = Deferred()
d.result = result
return d
16.6.10
A simplified deferred method
This is much like the twisted deferred, but is simplified down for use without twisted.
My dot-emacs
see here! you will need, yasnippet, rope, pymacs, ido(i think its included now), smex, cython-mode
# git clone git://github.com/bluemoon/all_configs.git
# cd all_configs
# ./install.sh
15.6.10
hestia

The basic core of hestia is done! The status icon is currently working and as soon as i figure out how i want to plan the rest out i will start on that bit. See the check mark icon, in the status icon tray in this screenshot.
Currently the project runs a set of commands that you have chosen, and gets the return status and sets the icon accordingly. If the build fails it sets and X and if not you get a pretty green check mark. Also if it fails, you get a notification from notify or notify-osd
30.12.09
aggdraw patches/fixes/updates
So i have been slowly overhauling bits of aggdraw and now have come to a point where i thought i'd explain what all i have done. Originally agg was packaged with aggdraw and it was an older version of the 2.x series, 2.3 if im not mistaken. I've now updated this older code to the current version of 2.5, updated many of the interfaces. Everything seems to be much faster now. I will have more to post later.
revision change of the update.
revision change of the update.
labels:
agg,
aggdraw,
aggdraw update,
C,
fixes
26.12.09
Subscribe to:
Posts (Atom)

