原先我是想衝刺寫哩扣,為後續找工作提升錄取率等等,然後找有沒有現成資源讓履歷有農題紀錄,但沒看過有人做這玩意兒;時間往後一拉我已找到工作,而寫哩扣的動力當然就大幅下降,後來想到我或許可以藉此激勵自己,每天農題把紀錄提升上來 lol,於是自己瞎搞一個。
事件 | 敘述 | 時間 |
---|---|---|
v1.0 | Graphics Interchange Format | 2024/01/27 |
v1.1 | 新增陰影顏色、進度條顯示 | 2024/01/30 |
- | 擴增 PDF 來展現內容 | - |
- | 最初想像這位大神的方法動態更新數據,但顯然俺不會... | - |
git clone https://github.com/Junwu0615/LeetCode-Record-Sharing-Method.git
pip install -r requirements.txt
python LeetCode-Record-Sharing-Method.py -h
-h
Help : Show this help message and exit.-i
User ID : Give a LeetCode user-id.-n
User Name : Give your name.-f
Font : Give a font type. Default : "AniMeMatrix-MB_EN.ttf"-bc
Background Color : Give a background color. Default : "#3C3C3C"-fc
Font Color : Give a font color. Default : "255,255,255"-fs
Font Shadow : Give a font shadow. Default : "39,39,39"-p
Customize Path : If you want to customize the picture, please give the path. Default : "None"
範例是從 LeetCode 看到的幾位解題達人 Sithis、numb3r5、uwi 之數據來呈現,他們數據比較豐富 www。
運行完畢後會產出 gif
檔。
-i
Sithis-n
"Sithis"-f
"AniMeMatrix-MB_EN.ttf"-bc
#FFFFFF-fc
"64,64,64"-fs
"39,64,64"-p
"None"
python LeetCode-Record-Sharing-Method.py -i Sithis -n "Sithis" -f "AniMeMatrix-MB_EN.ttf" -bc #FFFFFF -fc "64,64,64" -fs "190,190,190" -p "None"
-i
numb3r5-n
"numb3r5"-f
"AniMeMatrix-MB_EN.ttf"-bc
#3C3C3C-fc
"255,255,255"-fs
"39,39,39"-p
"None"
python LeetCode-Record-Sharing-Method.py -i numb3r5 -n "numb3r5" -f "AniMeMatrix-MB_EN.ttf" -bc #3C3C3C -fc "255,255,255" -fs "39,39,39" -p "None"
-i
uwi-n
"uwi"-f
"AniMeMatrix-MB_EN.ttf"-bc
#3C3C3C-fc
"255,255,255"-fs
"39,39,39"-p
"None"
python LeetCode-Record-Sharing-Method.py -i uwi -n "uwi" -f "AniMeMatrix-MB_EN.ttf" -bc #3C3C3C -fc "255,255,255" -fs "39,39,39" -p "None"
加入自定義的圖片,路徑放置於 ./sample_img/xxx
。
-i
Sithis-n
"Sithis"-f
"AniMeMatrix-MB_EN.ttf"-bc
None-fc
"64,64,64"-p
"./sample_img/pexels-pixabay-235985.jpg"
python LeetCode-Record-Sharing-Method.py -i Sithis -n "Sithis" -f "AniMeMatrix-MB_EN.ttf" -bc None -fc "39,39,39" -fs "157,157,157" -p "./sample_img/pexels-pixabay-235985.jpg"
python LeetCode-Record-Sharing-Method.py -i numb3r5 -n "numb3r5" -f "AniMeMatrix-MB_EN.ttf" -bc None -fc "255,255,255" -fs "39,39,39" -p "./sample_img/pexels-pixabay-164175.jpg"
python LeetCode-Record-Sharing-Method.py -i uwi -n "uwi" -f "SHOWG.TTF" -bc None -fc "255,250,250" -fs "39,39,39" -p "./sample_img/pexels-pixabay-531880.jpg"