Skip to content

Instantly share code, notes, and snippets.

View riasat-sheikh's full-sized avatar
🐈‍⬛

Riasat Sheikh riasat-sheikh

🐈‍⬛
View GitHub Profile
@riasat-sheikh
riasat-sheikh / arXiv_download.py
Created June 29, 2025 06:39
arXiv downloader
import os
import requests
import feedparser
from tqdm import tqdm
from PyPDF2 import PdfReader
# Set search parameters
search_query = "pNGB" # keyword
max_results = 10000 # change as needed
output_dir = "arxiv_pngb_pdfs"
@riasat-sheikh
riasat-sheikh / thefermion-preamble.sty
Last active October 19, 2024 11:20
LaTeX preamble
%% thefermion-preamble.sty
%% Riasat Sheikh
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{thefermion-preamble}[2024/10/15 v.0.5]
% Option handling
\newif\ifnotes % Define a conditional flag
\DeclareOption{notes}{
\notestrue
@riasat-sheikh
riasat-sheikh / Literature Note Template.md
Last active August 26, 2024 14:48
Literature note template for Zotero Integration plugin

I would like to thank @FeralFlora for the original template. It is great in its own way and can produce a lot of output. However, I prefer a minimal approach, as there was a lot of redundant content for me. Moreover, I faced a problem with annotations not being copied when the HEX code of the color changes. Therefore, I modified the template to suit my preferences and fix the color issue by now checking the colorCategory instead of the HEX code itself (tested in Zotero 7 beta).

I hope this helps someone out there. To learn how to use it, please visit the original template gist.

The file below, named literatureNoteTemplate.md, is the template file.

PS. I would also like to share how I color-code my annotations below:

🟡 Important
🔴 Weaknesses and caveats