Skip to content

Instantly share code, notes, and snippets.

Denis Krienbühl href

Block or report user

Report or block href

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View HTML5 Skeleton template.html
<!DOCTYPE html>
<meta charset="utf-8">
<!--[if lt IE 9]>
<script src=""></script>

Keybase proof

I hereby claim:

  • I am href on github.
  • I am 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:

View testing.postgresql bug
import testing.postgresql
if __name__ == '__main__':
postgresql = testing.postgresql.Postgresql()
print('run server')
href / gist:9185284
Created Feb 24, 2014
Tests for Seantis Postfix
View gist:9185284
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
href /
Created Sep 9, 2013
Simple function / class to put records into groups if they belong together
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.
united = United(lambda last, current: last == current)
href /
Created Oct 27, 2011
Convert any dictionary to a named tuple
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
>>> named.b == d.b
You can’t perform that action at this time.