Skip to content

Instantly share code, notes, and snippets.

scook:~ scook$ python3
Python 3.4.2 (default, Jan 7 2015, 11:54:58)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> type(None)
<class 'NoneType'>
>>> type(False)
<class 'bool'>
>>> type(3)
<class 'int'>
named!(pub date_words_full <&[u8], Date>,
ws!(
alt_complete!(
do_parse!(
a: month >>
b: day_of_month >>
c: year_full >>
( Date{year: c, month: a, day: b} )
) |
do_parse!(
#!/usr/bin/env python
import argparse
import operator
import subprocess
parser = argparse.ArgumentParser(description='Count deleted lines only in the current repo')
parser.add_argument('--since', help='Since a date or e.g. "2 weeks ago"')
args = parser.parse_args()
@snark
snark / README.md
Last active January 30, 2019 22:22
SCRIPT-8
@snark
snark / README.md
Created January 30, 2019 22:28
SCRIPT-8