Skip to content

Instantly share code, notes, and snippets.

View SubhadityaMukherjee's full-sized avatar

Subhaditya Mukherjee SubhadityaMukherjee

View GitHub Profile
import clipboard
import os
from pathlib import Path
import re
def apply_transforms(txt, list_of_trans):
for trans in list_of_trans:
txt = trans(txt)
return txt
@SubhadityaMukherjee
SubhadityaMukherjee / create_tag_pages.py
Created October 25, 2022 12:22
Create Tag pages script for Obsidian
import os
from glob import glob
from pathlib import Path
import re
#%%
main_dir = Path("./docs/") # Change this to where your Obsidian Vault notes are
# %%
files = glob(str(main_dir) + "/**/*.md", recursive=True) # This looks at all markdown files
files.sort()
pdfannots <filename>
# eg : pdfannots /Users/eragon/Documents/paper.pdf
pip install pdfannots
@SubhadityaMukherjee
SubhadityaMukherjee / latex_report_bib.tex
Created September 9, 2022 16:01
latex_report_parts
\bibliographystyle{IEEEtran}
\bibliography{references}
\end{document}
@SubhadityaMukherjee
SubhadityaMukherjee / latex_report_cite.tex
Created September 9, 2022 16:01
latex_report_parts
\section{Citation Example}
Two interesting libraries are Kornia \cite{riba2020kornia} and fast.ai \cite{howard2020fastai}. If you want it inline then : \citep{howard2020fastai}.
%\newpage %add this if you want it to be on a separate page
\begin{appendix}
\listoffigures
\listoftables
\end{appendix}
@SubhadityaMukherjee
SubhadityaMukherjee / latex_report_toc.tex
Created September 9, 2022 16:01
latex_report_parts
\tableofcontents
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\textbf{Thesis Title}
\vspace{0.5cm}
Thesis Subtitle
\vspace{1.5cm}
\section{Equations}
We can have three types of these - An inline equation : $2x+3 = 10$, or a proper block , $$2 \sin(x)+10 = 100$$ or a long form one such as this.
\begin{equation}
E[g^{2}]_{t}= 0.9E[g^{2}]_{t-1}+ 0.1g^{2}_{t}\\
\theta_{t+1}= \theta_{t}- \frac{\eta}{\sqrt{E[g^{2}])_{t}+\epsilon}}g_{t}
\end{equation}