Skip to content

Instantly share code, notes, and snippets.

View thomaslima's full-sized avatar

Thomas Ferreira de Lima thomaslima

  • Princeton
View GitHub Profile
@thomaslima
thomaslima / multipagepdfcrop
Created August 15, 2022 21:08
Crop PDF figures with Latex (Macos, Linux)
#!/bin/bash
# This extracts one page out of a multi-page PDF
# (such as the type exported from Powerpoint).
# Then it crops it to tight margins
# Suppose you have a powerpoint with some pages being paper figures
# and a LaTex project that references pdf figures by name
# Old workflow
# Export, open multi-page PDF, manually drag a crop box, copy, make new PDF, save that as a new file, change its name, click "yes, replace"
@thomaslima
thomaslima / Progress Bar with scipy.ipynb
Last active January 20, 2022 10:53
Progress bar of scipy ode solver with tqdm
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.