Stata .ado files:
A big part of my job is to use stata to analyse datasets. Sometimes I make that easier for myself by writing an .ado file to automate certain tasks.
Here is tabmat.ado: an ado file that outputs the result of a "tab" command as a matrix (easier to export to excel with putexcel).
And here is tsmat.ado: another ado file that outputs the result of "tabstat" command as a matrix.
My Notepad++ theme for Stata
Materials for R training