Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael R. Bernstein webmaven

View GitHub Profile
View README.md

To install:

  1. Clone this gist as a git repo
  2. npm install in it
  3. node index.js
View gist:80e211d6d5080be600f5
import inspect
import morepath
import os
class ChameleonApp(morepath.App):
@morepath.reify
def chameleon_template_paths(self):
""" Returns *absolute* paths to chameleon templates.
View gist:ee3914c80242bc4183a2
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()
View gist:ea3f10fe9de08fba87ae
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 Aug 29, 2015
vmboot.py from google/appengine-python27 Docker image
View vmboot.py
#!/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
#
View .gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
View master.vim
" 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)
You can’t perform that action at this time.