Skip to content

Instantly share code, notes, and snippets.

View PhilGeek's full-sized avatar

Mark Eli Kalderon PhilGeek

View GitHub Profile
@PhilGeek
PhilGeek / .bashrc
Created January 16, 2009 02:26 — forked from henrik/.bashrc
Bash Prompt
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# Multi-line prompt that uses the function __git_ps1 provided by .git-completion.sh to parse the branch.
# ~/dev/dir(master}
# username $ # clean working directory
# ~/dev/dir(master)*
# username $ # dirty working directory
function parse_git_dirty {
git diff --quiet HEAD &>/dev/null
@PhilGeek
PhilGeek / directive.tex
Created December 3, 2008 17:41
Sample TeX Directive
%!TEX TS-program = xelatex
%!TEX TS-options = -synctex=1 -output-driver="xdvipdfmx -q -E"
%!TEX encoding = UTF-8 Unicode
@PhilGeek
PhilGeek / TODO.tex
Created November 22, 2008 19:22
LaTeX preamble for generating TODO lists
% TODO List
\usepackage{color}
\usepackage{index} % use index package to create indices
\newindex{todo}{tod}{tnd}{TODO List} % start todo list
\newindex{fixme}{fix}{fnd}{FIXME List} % start fixme list
\newcommand{\todo}[1]{\textcolor{blue}{TODO: #1}\index[todo]{#1}} % macro for todo entries
\newcommand{\fixme}[1]{\textcolor{red}{FIXME: #1}\index[fixme]{#1}} % macro for fixme entries
@PhilGeek
PhilGeek / installgit.sh
Created July 25, 2008 08:15
Git installation script
#!/bin/sh
#
# installgit.sh
#
# A bash script to install the latest version of Git. Be sure to set the variables to the desired values.
#
# http://git.or.cz/
#
# Mark Eli Kalderon 2008-07-25

README

dotfiles

Created by Mark Eli Kalderon 2008-07-22

#Introduction

Directory of configuration files.

@PhilGeek
PhilGeek / README.markdown
Created July 22, 2008 11:21
LaTeX preamble and associated scripts

README

LaTeX Preamble

Created by Mark Eli Kalderon on 2008-07-30

Introduction

LaTeX preamble and associated files. Meant to be used as a submodule of a Git repository. The file, preamble.tex, needs to be included in the LaTeX document under version control. See the provided template. For more information about keeping your LaTeX preamble in a Git submodule see this blog post.