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 test(): | |
pass | |
print 'edited from home' |
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
url = http://www.example.com/trunk/projects/1234-Project/Production | |
fetch = trunk:refs/remotes/trunk | |
branches = branches/*:refs/remotes/* | |
tags = tags/*:refs/remotes/tags/* |
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
[svn-remote "svn"] | |
url = http://www.example.com/trunk/projects/1234-project/Production | |
fetch = trunk:refs/remotes/trunk | |
branches = trunk/projects/1234-project/Production/branches/*:refs/remotes/* | |
tags = trunk/projects/1234-project/Production/tags/*:refs/remotes/tags/* |
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
SERVER = "localhost" | |
FROM = "sender@example.com" | |
TO = ["user@example.com"] # must be a list | |
SUBJECT = "Hello!" | |
TEXT = "This message was sent with Python's smtplib." | |
message = """\ |
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/local/bin/pip run on Fri Oct 2 16:22:14 2009 | |
Exception: | |
Traceback (most recent call last): | |
File "/Library/Python/2.5/site-packages/pip-0.4-py2.5.egg/pip.py", line 274, in main | |
self.run(options, args) | |
File "/Library/Python/2.5/site-packages/pip-0.4-py2.5.egg/pip.py", line 431, in run | |
requirement_set.install_files(finder, force_root_egg_info=self.bundle) | |
File "/Library/Python/2.5/site-packages/pip-0.4-py2.5.egg/pip.py", line 1784, in install_files | |
if req_to_install.check_if_exists(): | |
File "/Library/Python/2.5/site-packages/pip-0.4-py2.5.egg/pip.py", line 1641, in check_if_exists |
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 twisted.web.resource import Resource | |
from twisted.web.static import File | |
from twisted.web.proxy import ReverseProxyResource | |
from twisted.web.server import Site | |
from twisted.internet import reactor | |
from imageserver import ModuleImage | |
from settings import settings |
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
- (void) setScale: (CPString) scale origin: (CPString) origin | |
{ | |
var fScale = parseFloat(scale); | |
// commenting out this log makes it stop working | |
CPLog("asdf"); | |
// The slider updates fine | |
[_zoomSlider setDoubleValue:fScale * 100.0]; | |
// This sets up a CGAffineTransform, it only works if the CPLog is present |
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 twisted.web.resource import Resource | |
from twisted.web.server import Site, NOT_DONE_YET | |
from twisted.web.client import getPage | |
from twisted.internet import reactor, defer | |
from twisted.python import log | |
import sys | |
log.startLogging(sys.stdout) | |
from sites import SITES |
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
$ curl -N localhost:8000 | |
<html><body>GOT http://baidu.com (81)<br> | |
GOT http://google.com (10289)<br> | |
GOT http://wikipedia.org (48437)<br> | |
GOT http://facebook.com (28590)<br> | |
GOT http://youtube.com (141614)<br> | |
GOT http://twitter.com (51359)<br> | |
GOT http://yahoo.com (106939)<br> | |
ERROR http://blogspot.com (Getting https://www.google.com/accounts/ServiceLogin?service=blogger&passive=1209600&continue=http%3A%2F%2Fwww.blogger.com%2Fhome&followup=http%3A%2F%2Fwww.blogger.com%2Fhome<mpl=start took longer than 2 seconds.)<br> | |
ERROR http://live.com (Getting https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1308259542&rver=6.1.6206.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2F%3Frru%3Dhome%26livecom%3D1&lc=1033&id=251248&cbcxt=hom&mkt=en-US took longer than 2 seconds.)<br> |
OlderNewer