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
const originalReplaceState = history.replaceState; | |
// Run below Reveal.initialize like | |
// enable_hash('/presentations/2023/my-presentation.html'); | |
function enable_hash(path) { | |
history.replaceState = (_a, _b, url) => { | |
url = url.toString(); | |
if (url[0] == '#') { | |
url = path + url; | |
} |
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
activate () { | |
source ~/projects/$1/.venv/bin/activate | |
} | |
venv () { | |
if [ -z $1 ] | |
then | |
echo "No project name given, exiting" | |
return | |
fi |
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
function activate | |
source ~/venvs/$argv/bin/activate.fish | |
end | |
function lazyvenv | |
set -l name (basename (pwd)) | |
if test -d ~/venvs/$name | |
activate $name | |
else | |
echo "No venv found: creating venv" |
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
activate () { | |
source ~/venvs/$1/bin/activate | |
} | |
lazyvenv () { | |
name=$(basename $(pwd)) | |
if [ -d ~/venvs/$name ] | |
then | |
activate $name |
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 python | |
import datetime | |
import pathlib | |
ROOT = pathlib.Path(__file__).resolve().parent | |
#List of calendar names to get events from | |
#if empty, just take all calendars | |
GOOGLE_CALENDARS = [ |
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
#Execution: ./overleaf_diff [overleaf git hash] [main tex file name] [tag 1] [tag 2] | |
get_overleaf () { | |
if [ -d "$1" ]; then | |
cd "$1" | |
git pull | |
cd .. | |
else | |
git clone "https://git.overleaf.com/$1" | |
fi |