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
import sys | |
import mmap | |
# usage: | |
# $ python3 rewrite_rp.py 1.dat 001 | |
with open(sys.argv[1], 'rb+') as f: | |
with mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_WRITE) as m: | |
(curr_rp, new_rp) = (m[1], int(sys.argv[2])) | |
print("{0:03d} -> {1:03d}".format(curr_rp, new_rp)) |
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
digraph joetsu_merge { | |
graph [rankdir = LR]; | |
"下ノ郷村" -> "金谷村"; | |
"北大崎村" -> "金谷村"; | |
"金谷村" -> "高田市\n(1954)"; | |
"新道村" -> "高田市\n(1954)"; | |
"高田町" -> "高田町\n(1908)"; | |
"高城村" -> "高田町\n(1908)"; |
NewerOlder