Code

I alternate between Sublime Text 3 (on my local machine) and Vim (on a remote/headless server) for my programming/word-processing/writing needs. My Packages/User/ folder (sublime’s equivalent of a dotfile) can be found here. (requires Package Control). The packages I currently use are here.

I currently use a Dell Inspiron 15 7559 running Ubuntu 16.04 LTS as my primary work machine. My dotfiles (for zsh, vim, tmux, e/spacemacs etc) are in a git repository that can be found here, and installed using this shell script.

This page lists programs I’ve written to directly/indirectly aid research as well as tinkering projects.

Stata

Utilities Package

Github Repository

To install, run the following line in the Stata console:

net install lal_utilities, from(https://raw.github.com/apoorvalal/misc_stata_ados/master/)

Or, if you prefer, download ados and move to your personal ado folder / c(sysdir_personal) (where ssc-installed ados live).

R

Utilities Package

Github Repository

To install, run:

library(devtools)
devtools::install_github("apoorvalal/LalRUtils")

Script to install Econometrics/General Data-Munging libraries on R

Python

Parallelize stata

(i.e. run several instances of stata in batch mode with separate arguments passed to a do file.

Scrape lecture notes

Download linked files(typically pdfs) that match specified pattern from a static website. Write .txt file with list of links and run download if the scrape_urls fails (as it often does for fancier non-static websites)

Gist Link

Function Plotter

Plots functions in R2 and R3 Gist link

Bash Scripts (tested on Windows Subsystem for Linux on Windows 10)

Clean install of Anaconda (Ipython + python scientific libraries)

Clean install of R

Clean install of Julia

Autohotkey

Autohotkey is a powerful scripting language for Windows. I’ve written/forked/collected keyboard mappings for programs I use frequently to map as closely as possible to my sublime/vim mappings.

Keyboard Remaps

Remap Caps Lock to CTRL and Right Alt to Esc

Program-specific Keymappings

Adobe Reader

Greek Letters for Math

Google Chrome

$\LaTeX$ package for extensive list of math shortcuts