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 tornado import httpserver, ioloop | |
from tornado.httpclient import AsyncHTTPClient, HTTPClient | |
class httpProxy(): | |
def __init__(self, iolp): | |
port = 5009 | |
self.myserv = httpserver.HTTPServer(self.handle_request) | |
self.myserv.listen(port) | |
print("Serving on " + str(port)) | |
#self.httpclient = HTTPClient() |
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
Traceback (most recent call last): | |
File "/Users/jayd3e/Clusterflunk/Clusterflunk/env/lib/python2.7/site-packages/pyramid-1.3.1-py2.7.egg/pyramid/mako_templating.py", line 181, in __call__ | |
result = template.render_unicode(**system) | |
File "/Users/jayd3e/Clusterflunk/Clusterflunk/env/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg/mako/template.py", line 406, in render_unicode | |
as_unicode=True) | |
File "/Users/jayd3e/Clusterflunk/Clusterflunk/env/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg/mako/runtime.py", line 764, in _render | |
**_kwargs_for_callable(callable_, data)) | |
File "/Users/jayd3e/Clusterflunk/Clusterflunk/env/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg/mako/runtime.py", line 795, in _render_context | |
(inherit, lclcontext) = _populate_self_namespace(context, tmpl) | |
File "/Users/jayd3e/Clusterflunk/Clusterflunk/env/lib/python2.7/site-packages/Mako-0.7.0-py2.7.egg/mako/runtime.py", line 741, in _populate_self_namespace |
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
(function(Group) { | |
/* | |
* | |
* Models | |
* | |
*/ | |
Group.Model = Backbone.Model.extend({ |
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
# queue.py run from the commandline | |
import time | |
from retools.queue import QueueManager | |
def insanely_slow_function(num=0): | |
previous = 1 | |
for i in range(1, num): | |
previous = previous + i | |
return previous |
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 os | |
import random | |
import subprocess | |
from pyramid.view import view_config | |
from thewall.repository import Repository | |
import sys | |
@view_config(route_name='home', renderer='home.html') | |
def home(request): | |
# we need the current tags from git |
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 os | |
import subprocess | |
from pyramid.view import view_config | |
from retools.queue import QueueManager | |
from thewall.repository import Repository | |
qm = QueueManager() | |
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
<html> | |
<head> | |
</head> | |
<body> | |
<script src="jquery-1.7.1.js"></script> | |
<script src="handlebars.js"></script> | |
<script src="underscore.js"></script> |
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
# | |
# doula.queue | |
# | |
from retools.queue import QueueManager | |
def add_job(job=None): | |
p = job.redis.pipeline() | |
import pdb; pdb.set_trace(); |
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
class TestBlogHandler(unittest.TestCase): | |
def setUp(self): | |
initializeDb(engine(TestConfig)) | |
self.config = testing.setUp() | |
self.request = testing.DummyRequest() | |
self.request.environ['PATH_INFO'] = '/blog' | |
def testBlogHandlerInit(self): | |
handler = BlogHandler(self.request) | |
self.assertIsNot(handler.request, None) |
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
[Files] | |
Source: "python-2.6.msi"; DestDir: "{tmp}" | |
Source: "setuptools-0.6c11.win32-py2.6.exe"; DestDir: "{tmp}" | |
[Run] | |
Filename: "python-2.6.msi"; Parameters: "\i ""{tmp}\python-2.6.msi""" | |
Filename: "setuptools-0.6c11.win32-py2.6.exe"; Parameters: "\i ""{tmp}\setuptools-0.6c11.win32-py2.6.exe""" |
OlderNewer