This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TestApp = SC.Application.create( | |
/** | |
Invoked when route change has been detected | |
*/ | |
routeDidChange: function(params) { | |
if (!params.target) return NO; | |
params = SC.clone(params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pdb | |
import time | |
import threading | |
class Event(object): | |
pass | |
class Observable(object): | |
def __init__(self): | |
self.callbacks = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# OSX VPN monitor | |
# | |
# requires: | |
# - http://www.chungwasoft.com/shimo/ | |
# - http://growl.info/ | |
# - http://appscript.sourceforge.net/ | |
import sys | |
import socket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from sqlalchemy.schema import CreateTable | |
>>> print CreateTable(model.TrafficLog.__table__) |
NewerOlder