Skip to content

Instantly share code, notes, and snippets.

View lichunzhu's full-sized avatar
🎯
Focusing

Chunzhu Li lichunzhu

🎯
Focusing
View GitHub Profile
@lichunzhu
lichunzhu / rfc.md
Last active October 22, 2022 06:10
hackathon 2022 P2T RFC
@lichunzhu
lichunzhu / dumpling.yaml
Created September 23, 2022 02:30
Kubernetes job for import & export
apiVersion: batch/v1
kind: Job
metadata:
name: ${name}
namespace: ${namespace}
spec:
template:
spec:
containers:
- name: dumpling
@lichunzhu
lichunzhu / cond_test.go
Last active November 24, 2021 08:35
cond bench
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package cond_test
import (
"encoding/binary"
"os"
"sync"
@lichunzhu
lichunzhu / main.go
Created October 20, 2020 13:09
dumpling improvement test
package main
import (
"bytes"
"context"
"database/sql"
"errors"
"fmt"
"os"
"strings"
@lichunzhu
lichunzhu / test.go
Last active August 4, 2020 08:29
test the effiency of assign []byte to interface{}
package main
import (
"fmt"
"time"
"github.com/pingcap/dumpling/v4/export"
)
func main() {
@lichunzhu
lichunzhu / ris_date.py
Last active December 25, 2018 07:37
改变IEEE RIS引用格式使其在endnote里显示date
# coding=utf-8
import os
path = "E:/pythoncode/ris_files" # 文件夹目录
files = os.listdir(path) # 得到文件夹下的所有文件名称
def is_character(x):
return ord('a') <= ord(x) <= ord('z') or ord('A') <= ord(x) <= ord('Z')
@lichunzhu
lichunzhu / expenseCrawlertype.py
Created September 11, 2018 03:37
xjtu bill scrab
# coding=gbk
import re
import requests
from http.cookiejar import CookieJar
import matplotlib.pyplot as plt
from operator import itemgetter, attrgetter
class info: