Skip to content

Instantly share code, notes, and snippets.

View swouf's full-sized avatar

Jérémy La Scala swouf

View GitHub Profile
@swouf
swouf / savefigure.py
Created October 8, 2025 10:59
Helper function to save a Matplotlib figure in multiple formats, in respective folders.
from pathlib import Path
from matplotlib.figure import Figure
from .params import output_folder
pdf_folder = Path("pdf")
eps_folder = Path("eps")
svg_folder = Path("svg")
png_folder = Path("png")
def save_all_figures(fig: Figure, name: str) -> None:
@swouf
swouf / conventional-commits.md
Created July 25, 2023 13:20 — forked from Zekfad/conventional-commits.md
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@swouf
swouf / author_infos.cff
Last active September 30, 2024 14:45
If one needs to add me to CITATION.cff for a repo.
[...]
authors:
- given-names: Jérémy
family-names: La Scala
email: jeremy.lascala@epfl.ch
orcid: 'https://orcid.org/0000-0002-8057-7787'
affiliation: École Polytechnique Fédérale de Lausanne
[...]