This file contains hidden or 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
TEL_DIGITS = { | |
"050": 4, # IP電話 | |
"070": 4, # 携帯電話/PHS | |
"080": 4, # 携帯電話 | |
"090": 4, # 携帯電話 | |
# その他 | |
"020": 3, | |
"0120": 3, | |
"0800": 3, | |
"0570": 3, |
This file contains hidden or 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
bash -c "time (sleep 3 && echo \"zzz..\" && sleep 2 && echo \"woke up\")" 2>&1 | |
$ sh ./test.sh | |
$ nohup sh ./test.sh & | |
$ nohup sh ./test.sh > test.log & |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
# -*- coding:utf8 -*- | |
from __future__ import division | |
from __future__ import unicode_literals | |
import codecs | |
import json | |
import multiprocessing | |
import re | |
import sys |
This file contains hidden or 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 | |
# -*- coding:utf8 -*- | |
from __future__ import unicode_literals | |
import codecs | |
import gzip | |
import re | |
import sys | |
import unicodedata |
This file contains hidden or 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 | |
# -*- coding:utf8 -*- | |
from __future__ import unicode_literals | |
import bz2 | |
import codecs | |
import mwparserfromhell | |
import multiprocessing | |
import re | |
import sys |
This file contains hidden or 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
In [1]: import pandas as pd | |
In [2]: data = {'a': [0,1,2], 'b': [3,4,5]} | |
...: df = pd.DataFrame(data) | |
...: df | |
...: | |
Out[2]: | |
a b | |
0 0 3 | |
1 1 4 |
This file contains hidden or 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
In [1]: import pandas as pd | |
...: | |
...: data = {'m': ['m1','m2','m2','m3','m3','m3','m4','m4','m4','m4'], | |
...: 'e': ['e1','e2','e3','e4','e5','e6','e7','e1','e2','e8'], | |
...: 'p': [0.9, 0.2, 0.8, 0.7, 0.1, 0.2, 0.3, 0.1, 0.2, 0.4]} | |
...: df = pd.DataFrame(data) | |
...: df | |
...: | |
Out[1]: | |
e m p |
This file contains hidden or 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
from __future__ import division | |
import re | |
import sys | |
from collections import defaultdict | |
is_alternate_game = False | |
if len(sys.argv) > 1: | |
is_alternate_game = sys.argv[1] in ('--alternate', '-a') |
NewerOlder