Skip to content

Instantly share code, notes, and snippets.

@pmagwene
pmagwene / gist:1177725
Created August 29, 2011 03:33
Using the wuerzburg theme for Beamer
\useoutertheme[glossy]{wuerzburg}
\useinnertheme[shadow,outline]{chamfered}
\usecolortheme{shark}
@pmagwene
pmagwene / gist:1178753
Created August 29, 2011 16:19
utf8 comment for TeXshop, ensures TexShop treats file as UTF8 unicode, place at beginning of file
%%!TEX encoding = UTF-8 Unicode
@pmagwene
pmagwene / gist:1184845
Created August 31, 2011 21:58
Cygwin packages to install for Bio313
wget
curl
mintty
openssh
@pmagwene
pmagwene / grayandpink.tex
Created September 5, 2011 04:20
Grey and pink beamer theme
%% grey and pink beamer theme
%% from http://mikedewar.wordpress.com/2009/02/25/latex-beamer-python-beauty/
\documentclass{beamer}
\usetheme{default}
\beamertemplatenavigationsymbolsempty
\definecolor{fore}{RGB}{249,242,215}
\definecolor{back}{RGB}{51,51,51}
@pmagwene
pmagwene / gist:1197815
Created September 6, 2011 15:11
my current gitignore_global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@pmagwene
pmagwene / gist:1207427
Created September 9, 2011 21:51
Python code for generating class meeting dates
from datetime import *
from dateutil.rrule import rrule
springclasses = list(rrule(WEEKLY, byweekday=(TU,TH), dtstart=date(2012,01,11),until=date(2012,4,25)))
for c in springclasses:
print c.strftime("%A, %d %B %Y")
@pmagwene
pmagwene / gist:1222125
Created September 16, 2011 13:25
Quickly pull up documentation on a LaTeX package
texdoc <name>
@pmagwene
pmagwene / gist:1243539
Created September 26, 2011 22:04
Convert PDF to PNG using imagemagick
convert -density 600x600 -quality 90 -resize 600 eigen-transform.pdf eigen-transform.png
@pmagwene
pmagwene / gist:1256995
Created October 2, 2011 03:34
basic .emacs for emacs24
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (wombat))))
;; default font size is 14pt
(set-face-attribute 'default nil :height 140)
@pmagwene
pmagwene / gist:1257022
Created October 2, 2011 03:57
emacs stuff
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(LaTeX-command "latex -synctex=1")
'(TeX-view-program-selection (quote ((output-dvi "open") (output-pdf "Skim") (output-html "open"))))
'(org-agenda-files (quote ("~/synchronized/org-notes/work.org" "~/synchronized/org-notes/home.org" "~/synchronized/org-notes/teaching.org" "~/synchronized/org-notes/research.org"))))
;(custom-set-faces