Skip to content

Instantly share code, notes, and snippets.

@kunimi
kunimi / csv
Created July 2, 2023 14:05
fund
日期,市值,持仓金额,余额,涨幅,可转债指数,指数涨幅,当日跑赢,总涨幅,指数总涨幅,总跑赢
2021-12-31,1250000.0,0.0,1250000.0,,2073.268,,,0.0,0.0,0.0
2022-01-04,1259509.05,1242663.26,16845.79,0.76,2089.3979999999997,0.78,-0.02,0.76,0.78,-0.020000000000000018
2022-01-05,1243202.12,1226962.92,16239.2,-1.29,2069.925,-0.93,-0.36,-0.54,-0.16,-0.38
2022-01-06,1248967.89,1236936.82,12031.07,0.46,2081.413,0.55,-0.09,-0.08,0.39,-0.47000000000000003
2022-01-07,1245367.99,1233336.92,12031.07,-0.29,2068.342,-0.63,0.34,-0.37,-0.24,-0.13
2022-01-10,1248559.45,1239994.99,8564.46,0.26,2078.58,0.49,-0.23,-0.12,0.26,-0.38
2022-01-11,1237614.74,1228365.6,9249.14,-0.88,2063.531,-0.72,-0.16,-0.99,-0.47,-0.52
2022-01-12,1251681.11,1242732.8,8948.31,1.14,2083.196,0.95,0.19,0.13,0.48,-0.35
2022-01-13,1245428.36,1237244.99,8183.37,-0.5,2068.489,-0.71,0.21,-0.37,-0.23,-0.13999999999999999
@kunimi
kunimi / chatpdf-zh.ipynb
Created March 25, 2023 15:35 — forked from ninehills/chatpdf-zh.ipynb
ChatPDF-zh.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kunimi
kunimi / gist:a5e1b6e71d66de09b2c8ffa8969ed40b
Created April 20, 2018 06:51 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@kunimi
kunimi / aqi.py
Last active December 30, 2020 14:19
Get real-time Air Quality Index (AQI) from aqicn.org
import re
import requests
def get_aqi(city):
base_url = 'http://aqicn.org/city/'
city_url = base_url + city
useragent = ('Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 '
'(KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36')
headers = {
'User-Agent': useragent