Skip to content

Instantly share code, notes, and snippets.

View pganssle's full-sized avatar
👨‍💼
Acclimating to new job, full bore FOSS contributions should resume soon.

Paul Ganssle pganssle

👨‍💼
Acclimating to new job, full bore FOSS contributions should resume soon.
View GitHub Profile
@pganssle
pganssle / datetime_predicates.py
Last active June 8, 2019 18:57
Demo code written to help @Zac-HD develop improved datetime strategies for Hypothesis.
# Released under MPL 2.0 per https://github.com/HypothesisWorks/hypothesis/blob/master/LICENSE.txt
# and CC-0: https://creativecommons.org/publicdomain/zero/1.0/legalcode
#
# Feel free to contact Paul Ganssle if you'd like this released under other terms.
from datetime import datetime, timedelta, timezone
from dateutil import tz
ZERO = timedelta(0)
@pganssle
pganssle / .clang-format
Created August 9, 2019 14:19
Clang format style that approximates PEP 7
# A clang-format style that approximates Python's PEP 7
# Useful for IDE integration
BasedOnStyle: Google
AlwaysBreakAfterReturnType: All
AllowShortIfStatementsOnASingleLine: false
AlignAfterOpenBracket: Align
BreakBeforeBraces: Stroustrup
ColumnLimit: 79
DerivePointerAlignment: false
IndentWidth: 4