Skip to content

展現 LeetCode 紀錄之方式 ( Crawler / LeetCode / Pillow / Python )

Notifications You must be signed in to change notification settings

Junwu0615/LeetCode-Record-Sharing-Method

Repository files navigation

GitHub Views GitHub Clones

前言

原先我是想衝刺寫哩扣,為後續找工作提升錄取率等等,然後找有沒有現成資源讓履歷有農題紀錄,但沒看過有人做這玩意兒;時間往後一拉我已找到工作,而寫哩扣的動力當然就大幅下降,後來想到我或許可以藉此激勵自己,每天農題把紀錄提升上來 lol,於是自己瞎搞一個。

歷史紀錄

事件 敘述 時間
v1.0 Graphics Interchange Format 2024/01/27
v1.1 新增陰影顏色、進度條顯示 2024/01/30
- 擴增 PDF 來展現內容 -
- 最初想像這位大神的方法動態更新數據,但顯然俺不會... -

How To Use

STEP.1 CLONE

git clone https://github.com/Junwu0615/LeetCode-Record-Sharing-Method.git

STEP.2 INSTALL PACKAGES

pip install -r requirements.txt

STEP.3 RUN

python LeetCode-Record-Sharing-Method.py -h

STEP.4 HELP

  • -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"

STEP.5 EXAMPLE

範例是從 LeetCode 看到的幾位解題達人 Sithisnumb3r5uwi 之數據來呈現,他們數據比較豐富 www。

I. 純色背景

運行完畢後會產出 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"

Sithis.gif

  • -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"

numb3r5.gif

  • -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"

uwi.gif

II. 自定義背景

加入自定義的圖片,路徑放置於 ./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"

00.gif

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"

01.gif

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"

02.gif


相關資源

About

展現 LeetCode 紀錄之方式 ( Crawler / LeetCode / Pillow / Python )

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages