Skip to content

Instantly share code, notes, and snippets.

@djbrugh
djbrugh / tikzmark-summation.tex
Created June 9, 2014 21:53
Tikzmarks for marking the n=0 to infinity limits on a summation symbol.
\tikzmarkin<16|handout:0>{a1}(0.09,-0.1)(-0.1,0.25)n=0\tikzmarkend{a1}
\tikzmarkin<17|handout:0>{a2}(0.09,-0.1)(-0.1,0.25)\infty\tikzmarkend{a2}
@djbrugh
djbrugh / bbedit-extra-scroll-space.sh
Created June 6, 2014 01:20
Configure BBedit to display extra scroll space at the end of the current document window. Prevents the need to edit text files at the bottom of the screen.
defaults write com.barebones.bbedit ExtraSpaceInTextViews -string "ESfp"
@djbrugh
djbrugh / find-uncover-slide
Created June 6, 2014 01:08
Regular expression to find the slide number inside the beamer overlay command \uncover.
(?<=\\uncover<)[0-9]*
@djbrugh
djbrugh / visibleenv.tex
Created June 4, 2014 21:09
Allows a figure to be placed on a Beamer slide (slide 3 and later in this example) while retaining formatting before the figure is shown by reserving space for an object wrapped in the visibleenv environment. This is preferable to using placeholder images.
\begin{visibleenv}<3-|handout:1>
\includegraphics[width=2.25in]{figs/image.pdf}
\end{visibleenv}
@djbrugh
djbrugh / onslide.sublime-macro
Created May 21, 2014 01:14
Sublime Text 3 macro for inserting \onslide<> and placing the curser between the angle brackets. Used when writing Beamer files. For ST3 to see this macro, it needs to be installed in the ST3 Packages/User folder. On my systems this folder is stored in Dropbox so it can be symlinked to the folder on the local mac.
[
{
"args":
{
"characters": "\\onslide"
},
"command": "insert"
},
{
"args":
@djbrugh
djbrugh / uncover.sublime-macro
Created May 21, 2014 01:11
Sublime Text 3 macro for inserting \uncover<> and placing the curser between the angle brackets. Used when writing Beamer files.
[
{
"args":
{
"characters": "\\uncove"
},
"command": "insert"
},
{
"args":
@djbrugh
djbrugh / st3-keybindings
Created May 21, 2014 01:07
Keybindings for Sublime Text 3
[
{ "keys": ["ctrl+shift+,"], "command": "run_macro_file", "args": {"file": "Packages/User/onslide.sublime-macro"} },
{ "keys": ["ctrl+shift+."], "command": "run_macro_file", "args": {"file": "Packages/User/uncover.sublime-macro"} },
{ "keys": ["super+r"], "command": "build" }
]
@djbrugh
djbrugh / st3-symlinks
Last active August 29, 2015 14:01
Symbolic link Dropbox copy of ST3 'Packages' and 'Installed Packages' folders to ~/Library/Application Support/Sublime Text 3
@djbrugh
djbrugh / g09-profile-settings.txt
Created May 5, 2014 16:54
Gaussian 09 settings to be entered into the bash_profile file.
g09root=/Applications
export g09root
. $g09root/g09/bsd/g09.profile
GAUSS_SCRDIR=/Users/Shared/Scratch
export GAUSS_SCRDIR
@djbrugh
djbrugh / cli-settings.txt
Last active August 29, 2015 14:01
Shell environment settings to enable colored 'ls' output and format the prompt as host:user:path. The color setting uses bold dark blue for folders, which is my preference.
export PS1="\h:\u:\W$ "
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad