Skip to content

Instantly share code, notes, and snippets.

def test():
pass
print 'edited from home'
url = http://www.example.com/trunk/projects/1234-Project/Production
fetch = trunk:refs/remotes/trunk
branches = branches/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
[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/*
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 = """\
/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
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
@orestis
orestis / couchdb_tags.js
Created February 22, 2010 17:26
trying to get a list of stations with their activities
/*
here's an activity document:
{
"name": "a name",
"stations": ["station1", "station2"]
}
I want a view that will return something like this:
- (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
@orestis
orestis / gist:1030336
Created June 16, 2011 21:33
timeout sample
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
@orestis
orestis / gist:1030364
Created June 16, 2011 21:42
timeout output
$ 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&ltmpl=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>