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 os import listdir | |
def main(): | |
for file in listdir("./"): | |
if file.endswith('.md'): | |
single(file) | |
def single(file): |
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
## ๅ จๅฑ่ฎพ็ฝฎ ## ============================================================ | |
# ๆฅๅฟ | |
#log-level=warn | |
#log=/PATH/.aria2/aria2.log | |
# ไธ่ฝฝไฝ็ฝฎ,ๆนๆไฝ ่ชๅทฑ็ ้ป่ฎค: ๅฝๅๅฏๅจไฝ็ฝฎ | |
dir=/media/wincer/Deep/Videos | |
disk-cache=32M | |
# ๆไปถ้ขๅ้ ๆนๅผ, ่ฝๆๆ้ไฝ็ฃ็็ข็, ้ป่ฎค:prealloc |
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
Python 18 hrs 33 mins โโโโโโโโโโโโโโโโโโโโโ 77.5% | |
HTML 1 hr 40 mins โโโโโโโโโโโโโโโโโโโโโ 7.0% | |
Other 1 hr 28 mins โโโโโโโโโโโโโโโโโโโโโ 6.2% | |
JavaScript 52 mins โโโโโโโโโโโโโโโโโโโโโ 3.7% | |
Bash 33 mins โโโโโโโโโโโโโโโโโโโโโ 2.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
package main | |
const R = 26 | |
type TrieNode struct { | |
value int | |
next []TrieNode | |
} | |
type TrieST struct { |
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
use tantivy::{SnippetGenerator, collector::TopDocs}; | |
use tantivy::query::QueryParser; | |
use tantivy::schema::*; | |
use tantivy::{doc, Index, ReloadPolicy}; | |
use cang_jie::{CangJieTokenizer, TokenizerOption, CANG_JIE}; | |
use jieba_rs::Jieba; | |
use std::sync::Arc; | |
fn tokenizer() -> CangJieTokenizer { |
OlderNewer