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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AlternateMouseScroll</key> | |
<true/> | |
<key>Default Bookmark Guid</key> | |
<string>40A6CA28-E364-496A-A5EF-48313DA0FD67</string> | |
<key>HapticFeedbackForEsc</key> | |
<false/> |
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 BaseHTTPServer import BaseHTTPRequestHandler | |
import urlparse, json | |
class GetHandler(BaseHTTPRequestHandler): | |
def do_GET(self): | |
parsed_path = urlparse.urlparse(self.path) | |
message = '\n'.join([ | |
'CLIENT VALUES:', | |
'client_address=%s (%s)' % (self.client_address, |
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
def waitFor(Double timeoutSecs = 5, Double intervalSecs = 0.5, Closure condition) { | |
intervalSecs = [timeoutSecs, intervalSecs].min() | |
def loops = Math.ceil(timeoutSecs / intervalSecs) | |
def pass = condition() | |
def i = 0 | |
while (!pass && i++ < loops) { | |
Thread.sleep((intervalSecs * 1000) as long) | |
pass = condition() |