Skip to content

Instantly share code, notes, and snippets.

@rossdylan
Created May 20, 2013 19:24
Show Gist options
  • Save rossdylan/5614751 to your computer and use it in GitHub Desktop.
Save rossdylan/5614751 to your computer and use it in GitHub Desktop.
oh dear lord, pyramid hello world example in one line
herp = (lambda clist: __import__('wsgiref.simple_server').simple_server.make_server('0.0.0.0', 8080, clist[-1].make_wsgi_app()).serve_forever())((lambda config: [config.add_route('hello', '/hello/{name}'), config.add_view(lambda request: __import__('pyramid.response').response.Response('Hello {0}'.format(request.matchdict['name'])), route_name="hello"), config])((lambda: __import__('pyramid.config').config.Configurator())()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment