Skip to content

Instantly share code, notes, and snippets.

@DArtagnant
DArtagnant / auto-compile-typst-files-at-git-commit
Last active November 22, 2024 20:17
Program that uses git's pre-commit feature to automatically compile typst files modified before a commit. So you always have the latest version of your typst documents compiled in pdf format in your repository.
#!/usr/bin/sh
# must be placed in the .git/hook directory with the name "pre-commit" and have execution permission
echo "////"
echo "Automatic detection of modified but unbuilt typst files..."
root=$(git rev-parse --show-toplevel)
diffs=$(git diff --cached --name-only --diff-filter=d -- '*.typ')
@DArtagnant
DArtagnant / TP3_Cartographie_Numerique_SNT.ipynb
Created February 24, 2024 12:09
DM SNT TP3 et TP3bis ipynb files
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DArtagnant
DArtagnant / itineraire_randonnee_montagne_cartographie_numerique_SNT.geojson
Last active February 24, 2024 11:38
Trajet du pont d'Espagne vers la Cabane du Pinet (géoportail), TP de SNT
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.