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
import re | |
import time | |
reg = re.compile(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]') | |
with open('requests/__init__.py', 'r') as fd: | |
t1 = time.time() | |
version = reg.search(fd.read()).group() | |
t2 = time.time() | |
print version |
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 python3 | |
import argparse | |
from glob import glob | |
import os | |
from textwrap import fill | |
import regex | |
import polib | |
from tabulate import tabulate |
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
{ | |
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", | |
"id": 1, | |
"node_id": "MDExOlB1bGxSZXF1ZXN0MQ==", | |
"html_url": "https://github.com/octocat/Hello-World/pull/1347", | |
"diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", | |
"patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch", | |
"issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", | |
"commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits", | |
"review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments", |
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
[Intro] | |
H|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-XX| | |
1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a | |
C|----------------|----------------|----------------|X-------X-------| | |
H|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-x-|x-x-x-X-X-X-X-X-|--X-X-X---X-X-X-| | |
B|----------------|----------------|--------------o-|o-----o-o-----o-| | |
1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a 1e+a2e+a3e+a4e+a |
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
Intro | |
H |----------------|----------------|x-x-------------|------------xx--| | |
T2|----------------|o-o-------------|----------------|oooo------------| | |
T3|----------------|o-o-----o-o-----|----------------|------oooo------| | |
S |o-o-------------|----------------|o-o-------------|----------------| | |
F |o-o-------------|--------o-o-----|----------------|----------------| | |
B |o-o-o---o---o---|o-o-o---o-o-o---|o-o-o---o---o---|----oo----oo--oo| | |
C |c-c-------------|----------------| | |
T2|----------------|o-o-------------| |