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
# 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 |
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
# 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 |
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
# 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 |
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
''' | |
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 |
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
# 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 |