Skip to content

Instantly share code, notes, and snippets.

# standard
from pathlib import Path
import re
# third party
import pandas as pd
import PyPDF2
FSM_PATH = f"/Users/anmolgarg/Documents/fsm/2000_FSM/Repair Manual"
SAVE_PATH = FSM_PATH
# Install tmux on CentOS 6.7
# Yum Install Dependencies
sudo yum -y install gcc kernel-devel make ncurses-devel
# Download Sources for libevent 2.0.22 and Make and Install
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local
# these things are run on IPython start
# Import some things I like to have
import os
from pprint import pprint
import sys
import shutil
import scipy.stats as stats
# Set some pandas options
'''
Creates a new directory for a project consisting of a root folder named `[date_]project`
and a template of folders designed for a typical data science project.
Script first asks for user input for naming and then clones a template folder using git.
The script also writes a README.md file with creation information.
Run the make_project_dir script by typing
'python -c "$(curl -fsSL https://gist.githubusercontent.com/anmolgarg/ef483a22babb353367a9/raw/make_project_dir.py)"'
To use your own template repo, simply provide the url to a repo matching the style of the
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better
# 3. File and Folder Management
# 4. Searching
# 5. Networking and System Information
# 6. Data Analytics