Skip to content

Instantly share code, notes, and snippets.

View webmaven's full-sized avatar

Michael R. Bernstein webmaven

View GitHub Profile
I am attesting that this GitHub handle webmaven is linked to the Tezos account tz1iet82KQJNLFV3Cw1C6dD7p9q91hM4duRF for tzprofiles
sig:edsigtham8hUQ4sge72w8j6GzZEX56SCaqFAEoWNWLSEPmrSg9ieRC2WiK2aTogVGmDbYLc9sBv8fqJUuUuwghrbbMMcprEVo1E
@webmaven
webmaven / README.md
Created November 5, 2015 21:35 — forked from tmcw/README.md

To install:

  1. Clone this gist as a git repo
  2. npm install in it
  3. node index.js
import inspect
import morepath
import os
class ChameleonApp(morepath.App):
@morepath.reify
def chameleon_template_paths(self):
""" Returns *absolute* paths to chameleon templates.
ERROR 2014-11-19 15:38:08,755 wsgi.py:279]
Traceback (most recent call last):
File "/home/webmaven/projects/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 267, in Handle
result = handler(dict(self._environ), self._StartResponse)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/app.py", line 123, in __call__
response = self.publish(request)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/publish.py", line 66, in publish
return resolve_response(request, model)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/publish.py", line 48, in resolve_response
raise HTTPNotFound()
ERROR 2014-11-19 15:33:44,955 wsgi.py:279]
Traceback (most recent call last):
File "/home/webmaven/projects/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 267, in Handle
result = handler(dict(self._environ), self._StartResponse)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/app.py", line 136, in __call__
response = self.publish(request)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/publish.py", line 68, in publish
return resolve_response(request, model)
File "/home/webmaven/projects/appengine-todos-morepath/lib/morepath/publish.py", line 46, in resolve_response
view = generic.view.component(request, obj, lookup=request.lookup)
@webmaven
webmaven / vmboot.py
Last active August 29, 2015 14:07
vmboot.py from google/appengine-python27 Docker image
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@webmaven
webmaven / .gitignore
Last active August 29, 2015 14:05 — forked from wrobstory/.gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)