Skip to content

Instantly share code, notes, and snippets.

View sirvan3tr's full-sized avatar

sirvan3tr

View GitHub Profile
@sirvan3tr
sirvan3tr / tex
Created March 25, 2024 11:33
preamble
\usepackage{float} % Improved interface for floating objects
% minitoc breaks the IEEEtran cls
% \usepackage{minitoc} % Allows you to include contents page in chapters if you want
\usepackage[table]{xcolor} % Advanced color handling with table option for coloring tables
\usepackage{cite} % Improved citation handling
\usepackage{amsmath,amssymb,amsfonts} % AMS mathematical facilities and symbols
\usepackage{bm} % Access bold math symbols
\usepackage{graphicx} % Enhanced support for graphics
\usepackage{textcomp} % Additional text symbols
\usepackage{hyperref} % Extensive support for hypertext in LaTeX
@sirvan3tr
sirvan3tr / .zshrc
Created May 23, 2022 10:19
zshrc commands to create a Python virtual environment (.venv) and create a Python .gitignore at the same time
# Python virtual venv alias
alias activate='test -d venv && source ./venv/bin/activate || echo "No Virtualenv in the current folder"'
make_python_venv() {
echo "Creating .venv environement"
test -d venv && echo "Already exists" || python3 -m venv venv; activate
echo "Fetching .gitignore file"
wget https://raw.githubusercontent.com/sirvan3tr/configs3tr/main/Python.gitignore
mv Python.gitignore .gitignore
echo "Success"