Skip to content

Instantly share code, notes, and snippets.

@roganartu
roganartu / keybase.md
Created October 7, 2014 20:39
Keybase Proof

Keybase proof

I hereby claim:

  • I am roganartu on github.
  • I am roganartu (https://keybase.io/roganartu) on keybase.
  • I have a public key whose fingerprint is 4BD0 9E3E FAAF EC1D 9F6D 0FE0 810B 5793 1657 B693

To claim this, I am signing this object:

#!/usr/bin/env python3.6
'''
AWS Lambda handler to send a weekly email digest for GitHub repository releases.
For the full write up on how to use this script, see:
https://www.tonylykke.com/posts/subscribing-to-project-releases-with-lambda/
'''
from base64 import b64decode
from datetime import datetime, timedelta
@roganartu
roganartu / Output
Last active April 22, 2020 21:11
Example for extend_const addition to argparse stdlib
$ python example.py
--filter-by foo --filter-by bar: Namespace(filter_by=['foo', 'bar'])
--by-foo: Namespace(filter_by=['foo'])
--by-bar: Namespace(filter_by=['bar'])
--by-foo --by-bar: Namespace(filter_by=['foo', 'bar'])
--by-both: Namespace(filter_by=['foo', 'bar'])