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
from hashlib import md5 | |
from sqlite3 import connect as sql_conn | |
from time import localtime, strftime | |
class IllegalException(Exception): | |
def __init__(self, *args): | |
super().__init__(*args) | |
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
## 全局设置 ## ============================================================ | |
# 日志 | |
#log-level=warn | |
#log=/PATH/.aria2/aria2.log | |
# 下载位置,改成你自己的 默认: 当前启动位置 | |
dir=/media/wincer/Deep/Videos | |
disk-cache=32M | |
# 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc |
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
from json import loads as jsload | |
from os import system | |
from random import random | |
from time import time | |
from requests import get as request | |
def resolve(sMid): | |
filename = 'C400' + sMid + '.m4a' |
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
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 { |
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
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 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 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
var rand1 = Math.floor(Math.random()*410);quotes = new Array | |
quotes[0]='若隐若现才是艺术! ——「问题儿童来自异世界」' | |
quotes[1]='下一次重逢,将是何年何月?天空必将见证。 ——「SOLA」' | |
quotes[2]='如果你都不知道自己想去哪里,那去哪里都是一样的。 ——「柴郡猫」' | |
quotes[3]='一定没有问题的! ——「魔卡少女樱」' | |
quotes[4]='这是眼泪吗?原来眼泪是这么的温暖,我一直以为,哀伤的东西都是冰冷的。 ——「风色幻想」' | |
quotes[5]='桑丘,让他们管我叫疯子吧,我还疯得不够,所以得不到他们的赞许。 ——「堂吉诃德」' | |
quotes[6]='美好的人眼裡映出的世界也是美好的。 ——「ARIA」' | |
quotes[7]='如果不能忠于自己的心,胜负又有什么价值呢? ——「塔希里亚故事集」' | |
quotes[8]='天空本是一种风景,可是遇见你之后,它变成了一种心情。 ——「九ちのセカィ」' |
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
from os import listdir | |
def main(): | |
for file in listdir("./"): | |
if file.endswith('.md'): | |
single(file) | |
def single(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
# 设置默认 image | |
defaults: &defaults | |
docker: | |
- image: circleci/node:10.4.0 | |
version: 2 | |
jobs: | |
build: | |
# 导入默认设置 | |
<<: *defaults |
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
// 脚本资源 | |
let tmpWorker = await fetch(workerUrl), | |
workerSrcBlob = new Blob([await tmpWorker.text()], { type: 'text/javascript' }), | |
workerBlobURL = window.URL.createObjectURL(workerSrcBlob); | |
// workerBlobURL 即为网站域名下的资源 | |
// 图片资源 | |
let tmpImg = await fetch(imageUrl), |
NewerOlder