المشاريع
عرض على GitHub
fspv/leetcode-anki
حول
Anki cards generator for Leetcode
التعلّم والتعليمالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
Leetcode Anki card generator
Summary
By running this script you'll be able to generate Anki cards with all the leetcode problems.
I personally use it to track my grinding progress.


Prerequisites
- python3.8+ installed
- python virtualenv installed
- git cli installed
- GNU make installed (optional, can run the script directly)
- *nix operating system (Linux, MacOS, FreeBSD, ...). Should also work for Windows, but commands will be different. I'm not a Windows expert, so can't figure out how to make it work there, but contributions are welcome.
How to run
First download the source code
git clone https://github.com/prius/leetcode-anki.git
cd leetcode-anki
After that initialize and activate python virtualenv somewhere
Linux/MacOS
virtualenv -p python leetcode-anki
. leetcode-anki/bin/activate
Windows
python -m venv leetcode-anki
.\leetcode-anki\Scripts\activate.bat
Then initialize necessary environment variables. You can get it directly from your browser cookies (csrftoken and LEETCODE_SESSION)
Linux/Macos
export LEETCODE_CSRF_TOKEN="xxx"
export LEETCODE_SESSION_ID="yyy"
Windows
set LEETCODE_CSRF_TOKEN="xxx"
set LEETCODE_SESSION_ID="yyy"
And finally run for Linux/MacOS
make generate
Or for Windows
pip install -r requirements.txt
python generate.py
You'll get leetcode.apkg file, which you can import directly to your anki app.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…