Skip to content

Instantly share code, notes, and snippets.

View LucunJi's full-sized avatar
🚼
Postnatal

LucunJi

🚼
Postnatal
View GitHub Profile
@LucunJi
LucunJi / export_to_pdf.sh
Last active February 1, 2023 08:42
Shellcommands knitr+pandoc workflow in Obsidian
# output structure: vault/subfolder/path from vault to file folder
# so we can put all output in one place with comflicts
outfolder={{vault_path}}/{{_export_output_subfolder}}/`realpath -s --relative-to={{vault_path}} {{folder_path:absolute}}`/
fileout="$outfolder"/{{title}}.pdf
mkdir -p "$outfolder" &&
pandoc \
--defaults {{_pandoc_pdf_defaults}} \
--resource-path {{vault_path}} \
--resource-path {{vault_path}}/{{_assets_folder}} \
@LucunJi
LucunJi / Pipfile
Last active August 8, 2021 09:19
sinocraft-autodraw
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
numpy = "*"
opencv-python = "*"
pyautogui = "*"
pynput = "*"