I hereby claim:
- I am href on github.
- I am href (https://keybase.io/href) on keybase.
- I have a public key whose fingerprint is 1C49 0401 B99C B9A6 85D6 9CEF 5027 CBD2 A4FE 6299
To claim this, I am signing this object:
import inspect | |
import morepath | |
import os | |
class ChameleonApp(morepath.App): | |
@morepath.reify | |
def chameleon_template_paths(self): | |
""" Returns *absolute* paths to chameleon templates. |
import morepath | |
import re | |
from pprint import pprint | |
class App(morepath.App): | |
def request(self, environ): | |
request = super().request(environ) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> | |
<body> |
I hereby claim:
To claim this, I am signing this object:
import testing.postgresql | |
if __name__ == '__main__': | |
postgresql = testing.postgresql.Postgresql() | |
try: | |
print('run server') | |
finally: | |
postgresql.stop() |
import time | |
import unittest | |
import poplib | |
import textwrap | |
from uuid import uuid4 | |
from email import Encoders | |
from email.base64mime import encode | |
from email.MIMEBase import MIMEBase | |
from email.mime.text import MIMEText |
class United(object): | |
""" Puts items added through 'append' into the same group as the last | |
item which was appended, as long as the matchfn which is passed the last | |
and the current item returns true. | |
e.g. | |
united = United(lambda last, current: last == current) | |
united.append(1) |
from collections import namedtuple | |
def convert(dictionary): | |
return namedtuple('GenericDict', dictionary.keys())(**dictionary) | |
""" | |
>>> d = dictionary(a=1, b='b', c=[3]) | |
>>> named = convert(d) | |
>>> named.a == d.a | |
True | |
>>> named.b == d.b |