This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import email | |
import smtplib | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--from_user', type=str) | |
parser.add_argument('--from_pwd', type=str) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Rename arxiv papers with their original title. You have to put and run this script in the same folder as the pdfs to be renamed. | |
Author: Ignacio Heredia | |
Date: October 2017 | |
""" | |
import os | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script is (loosely) based on two references: | |
# * https://stackoverflow.com/questions/23793062/can-forks-be-synced-automatically-in-github | |
# * https://stackoverflow.com/questions/69918635/how-to-keep-all-branches-and-tags-in-sync-in-a-fork-or-mirror-repo | |
# [!] Note: Do not do a force push to not overwrite the .github/workflow/main.yml file. | |
# We are not using a predefined action (eg. [1]) to not go through the hassle of having to | |
# manage Github Personal Access Tokens for deephdc. | |
# [1]: https://github.com/repo-sync/github-sync | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Use paired with Bielefeld theme in dark mode | |
See also: https://github.com/Zettlr/Zettlr/discussions/2863 | |
*/ | |
/* ----------------- */ | |
/* Light mode styles */ | |
/* ----------------- */ | |
.CodeMirror .cm-quote { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import matplotlib.gridspec as gridspec | |
def subplots_centered(nrows, ncols, figsize, nfigs): | |
""" | |
Modification of matplotlib plt.subplots(), | |
useful when some subplots are empty. | |
It returns a grid where the plots |