forked from Vonng/ddia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
12,678 additions
and
1,189 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
- [序言](preface.md) | ||
- [第一部分:数据系统的基石](part-i.md) | ||
- [第一章:可靠性、可伸缩性、可维护性](ch1.md) | ||
- [第二章:数据模型与查询语言](ch2.md) | ||
- [第三章:存储与检索](ch3.md) | ||
- [第四章:编码与演化](ch4.md) | ||
|
||
- [第二部分:分布式数据](part-ii.md) | ||
|
||
- [第五章:复制](ch5.md) | ||
- [第六章:分区](ch6.md) | ||
- [第七章:事务](ch7.md) | ||
- [第八章:分布式系统的麻烦](ch8.md) | ||
- [第九章:一致性与共识](ch9.md) | ||
|
||
- [第三部分:衍生数据](part-iii.md) | ||
|
||
- [第十章:批处理](ch10.md) | ||
- [第十一章:流处理](ch11.md) | ||
- [第十二章:数据系统的未来](ch12.md) | ||
|
||
- [术语表](glossary.md) | ||
|
||
- [后记](colophon.md) |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python3 | ||
import os, sys, opencc | ||
|
||
def convert(src_path, dst_path, cfg='s2twp.json'): | ||
converter = opencc.OpenCC(cfg) | ||
with open(src_path, "r") as src, open(dst_path, "w+") as dst: | ||
dst.write("\n".join(converter.convert(line) for line in src)) | ||
print("convert %s to %s" % (src_path, dst_path)) | ||
|
||
|
||
if __name__ == '__main__': | ||
print(sys.argv) | ||
home = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), '..')) | ||
os.chdir(home) | ||
for f in os.listdir(): | ||
if f.endswith('.md'): | ||
convert(f, "zh-tw/" + f) |
Oops, something went wrong.