I hereby claim:
- I am dirn on github.
- I am dirn (https://keybase.io/dirn) on keybase.
- I have a public key whose fingerprint is 6648 1BC9 AEC6 9D44 62E6 A472 15AB 725A 8D07 7DDF
To claim this, I am signing this object:
"""pytest configuration and utilities.""" | |
import os | |
from urllib.parse import urlparse | |
from flask.ext.migrate import upgrade | |
import pytest | |
from sqlalchemy import event | |
from sqlalchemy.orm import Session |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
cd ./$(git rev-parse --show-cdup) | |
find . -name '*.pyc' - delete |
import os | |
from django.core.exceptions import ImproperlyConfigured | |
# Shortcuts courtesy of @kennethlove | |
here = lambda *x: os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) | |
PROJECT_ROOT = here('..') | |
root = lambda *x: os.path.join(os.path.abspath(PROJECT_ROOT), *x) | |
class Base(object): | |
def name(self): | |
return 'Base' | |
class Subclass(Base): | |
def name(self): | |
return 'Subclass' | |
def parent_name(self): | |
return super(Subclass, self).name() |
import random | |
import string | |
characters = string.ascii_letters + string.digits | |
s = set() | |
while len(s) < 200: | |
s.add(''.join(random.choice(characters) for _ in range(6))) |
struct Foo {} | |
struct Bar { | |
var data: [Foo] | |
init() { | |
data = [Foo](count: 5, repeatedValue: Foo()) | |
} | |
mutating func test() { |
SELECT | |
TO_CHAR(s.start, 'HH12:MIAM') AS start, | |
TO_CHAR(s.end, 'HH12:MIAM') AS end, | |
u.name, | |
t.name | |
FROM | |
rooms r | |
JOIN rooms_slots rs ON r.id = rs.room_id | |
JOIN slots s ON rs.slot_id = s.id | |
JOIN presentations p ON s.id = p.slot_id |
- host: localhost | |
remote_user: dirn | |
roles: | |
- osx | |
tags: osx, configuration | |
- role: vim | |
dotfiles: "{{ dotfiles }}" | |
tags: vim | |