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
//Limit to just the project ados | |
cap adopath - SITE | |
cap adopath - PLUS | |
cap adopath - PERSONAL | |
cap adopath - OLDPLACE | |
adopath ++ "${dir_base}/code/ado/" | |
*add mlibs in the new adopath to the index | |
mata: mata mlib index |
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
net set ado "${dir_base}/code/ado/" | |
* Simple module. | |
* Just install it once into your project. Copies of the project folder will work fine. | |
ssc install parallel | |
* Modules with machine-specific code. | |
* Needs to install each time you put the project folder on a new computer type. | |
* Needs an absolute path so let -pwd- is "${dir_base}/code" | |
net install synth , all force from("`c(pwd)'/${dir_base}/code/ado-store/s/") |
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
<!-- include in header --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<!-- These below should be integrated into highlight.js --> | |
<link rel="stylesheet" href="http://quistorff.com/stata/stata-default.css"> | |
<script src="http://quistorff.com/stata/highlight.pack.js"></script> | |
<script> | |
$(document).ready(function() { | |
$('div.line').replaceWith(function() { return this.innerHTML.concat('\n'); }); | |
$('pre').each(function(i, block) { hljs.highlightBlock(block); }); |
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
#!/bin/bash | |
# Creates three PDFs from a Beamer LyX document. | |
# Doesn't assume anything about existing options | |
# so makes all docs with new file suffixes. | |
# | |
# Added to Right-click menu with FileMenu Tools by lopesoft | |
# Pass in the filename with extension | |
filename=${1%%.*} |
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
#!/bin/bash | |
# Creates three PDFs from a Beamer LyX document. | |
# Doesn't assume anything about existing options | |
# so makes all docs with new file suffixes. | |
# | |
# Added to Right-click menu with FileMenu Tools by lopesoft | |
# Pass in the filename with extension | |
filename=${1%%.*} |
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
*Make sure -mata: mata mlib index- has been executed previously | |
cap di regexm("`c(matalibs)'", "(.*);lpersonal(.*)") | |
mata: mata set matalibs "lpersonal;`=regexs(1)'`=regexs(2)'" |
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
#!/bin/bash | |
# Example usage | |
#./store-mod-install-files.sh http://fmwww.bc.edu/repec/bocode/s/synth.pkg ado-store | |
# Assumes the standard first-letter directory structure. | |
pkgfilename=$(basename "$1") | |
pkgdirpath=$(dirname "$1") | |
pkgbase="${pkgfilename%.*}" | |
pkgbase_letter=${pkgbase:0:1} | |
orig_dir=$PWD |
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
*Callable from the command line for install packages from local store (that need machine-specific installation) | |
global dir_base ".." | |
* Use the -net set- line before installing other packages | |
net set ado "${dir_base}/code/ado/" | |
local letter1 = substr("`1'",1,1) | |
net install `1' , all force from("`c(pwd)'/${dir_base}/code/ado-store/`letter1'/") |
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
*Callable from the command line for converting a gph to eps's in the right places | |
global dir_base ".." | |
translate "${dir_base}/log/smcl/`1'.smcl" "${dir_base}/log/`1'.log", replace linesize(140) |
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
#!/bin/bash | |
# renames files (and svn mv's them if in svn) | |
# not sure if this works if there is whitespace in these vars | |
# use from base of project | |
findstr=$1 | |
replacestr=$2 | |
# It currently doesn't search in hidden folders | |
# for no recursion, use: | |
# for i in * |
OlderNewer