Install Chocolatey first
Run this to install dependencies, re-run this if the installer requires a reboots
choco install visualstudio2019buildtools visualstudio2019-workload-vctools git jre8 nvm cmder sublimetext4 docker-desktop
| FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8 | |
| RUN pip install --upgrade pip | |
| ARG poetry_version="master" | |
| # install-poetry.py and get-poetry.py are options; but get-poetry.py is deprecated though! | |
| ARG poetry_script_name="install-poetry.py" | |
| ARG debug_poetry="true" | |
| ENV PATH="/opt/poetry/bin:${PATH}" | |
| # Install Poetry |
| #!/bin/bash | |
| ENV_NAME=$1 | |
| PYTHON_VERSION=$2 | |
| CONDA_BASE=$(conda info --base)/"etc/profile.d/conda.sh" | |
| CONDA_ENV_PATH=$(conda info --base)/"envs/$ENV_NAME" | |
| echo "$CONDA_BASE" | |
| echo "$CONDA_ENV_PATH" |
| Using virtualenv: /Users/jd/Dropbox/Python Scripts/code_to_share/.venv | |
| Using version ^11.7.1 for ocrmypdf | |
| Updating dependencies | |
| Resolving dependencies... | |
| 1: fact: code_to_share is 0.1.0 | |
| 1: derived: code_to_share | |
| 1: fact: code_to_share depends on fastapi (^0.63.0) | |
| 1: fact: code_to_share depends on uvicorn (^0.13.4) | |
| 1: fact: code_to_share depends on httpx (^0.17.0) |
| [tool.poetry] | |
| name = "code_to_share" | |
| version = "0.1.0" | |
| description = "" | |
| authors = ["JD <[email protected]>"] | |
| license = "MIT" | |
| [tool.poetry.dependencies] | |
| python = "^3.9" | |
| fastapi = "^0.63.0" |
Run this to install dependencies, re-run this if the installer requires a reboots
choco install visualstudio2019buildtools visualstudio2019-workload-vctools git jre8 nvm cmder sublimetext4 docker-desktop
choco install nvda
choco install poedit
choco install tortoisesvn
| import re | |
| import docx | |
| from docx.text.run import Run | |
| def add_hyperlink_into_run(paragraph, run, url): | |
| """ | |
| https://github.com/python-openxml/python-docx/issues/610#issuecomment-458289054 | |
| """ | |
| runs = paragraph.runs |
Solution - 1
cat requirements.txt|xargs poetry addSolution - 2
for item in $(cat requirements.txt); do poetry add "${item}"; done
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Ticketing App - {% block title %} {% endblock %}</title> | |
| </head> | |
| <body> | |
| <nav> | |
| <a href="/">Home</a> | |
| <a href="/tickets">View Tickets</a> |