This is a SCRIPT-8 cassette.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'> |