Just added: Algorithms you can run and practice
Reference

Cheat Sheet

The commands you keep forgetting, with a one-line description and a real example you can copy - 629 across 38 tools. Pick a tool in the sidebar, or search across all of them.

Python (pip, venv & uv)

Virtual environments and package management - classic pip/venv and modern uv.
CommandWhat it doesExample
python -m venvCreate a virtual environment.python -m venv .venv
activate (mac/Linux)Enter the virtual environment.source .venv/bin/activate
activate (Windows)Enter the venv on Windows..venv\Scripts\activate
deactivateLeave the virtual environment.deactivate
pip installInstall a package.pip install requests
pip install (pinned)Install an exact version.pip install "django==5.0"
pip install -rInstall everything in a requirements file.pip install -r requirements.txt
pip freezeWrite exact installed versions to a file.pip freeze > requirements.txt
pip listList installed packages.pip list
pip uninstallRemove a package.pip uninstall requests
pip showShow details about an installed package.pip show requests
pip install -UUpgrade a package to the latest.pip install -U pip
python -mRun a module as a script.python -m http.server 8000
pipxInstall a CLI tool in its own isolated env.pipx install black
uv venvCreate a venv, much faster than python -m venv.uv venv
uv pip installDrop-in pip replacement inside the venv.uv pip install requests
uv initStart a project with a pyproject.toml.uv init myproject
uv addAdd a dependency to the project (and its lockfile).uv add fastapi
uv runRun a command in the project env - no activate needed.uv run pytest
uv syncInstall exactly what the lockfile says.uv sync
uvxRun a CLI tool without installing it (like npx).uvx ruff check .
uv python installInstall a Python version itself via uv.uv python install 3.12