Skip to content

Instantly share code, notes, and snippets.

View PhilGeek's full-sized avatar

Mark Eli Kalderon PhilGeek

  • University College London
  • London
View GitHub Profile
@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.

README

dotfiles

Created by Mark Eli Kalderon 2008-07-22

#Introduction

Directory of configuration files.

@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
@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 / 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 / .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 / discussion.tex
Created January 25, 2009 21:16
Defines a discussion environment. Text within will be set against a blue background.
\definecolor{myblue}{rgb}{0.8,0.8,1}
\makeatletter\newenvironment{discussion}{%
\noindent\begin{lrbox}{\@tempboxa}\begin{minipage}{\columnwidth}\setlength{\parindent}{1em}}{\end{minipage}\end{lrbox}%
\colorbox{myblue}{\usebox{\@tempboxa}}
}\makeatother
@PhilGeek
PhilGeek / installgawk.sh
Created February 2, 2009 00:24
Install GNU awk
#!/bin/sh
#
# installgawk.sh
#
# A bash script to install the latest version of GNU awk. Be sure to set the variables to the desired values.
#
# http://www.gnu.org/software/gawk/
#
# Mark Eli Kalderon 2008-03-22
If someone else came from the moon in some extraodinary machine, like
Gonsales, and told us credible tales about his homeland, we would take him to
be a lunarian; and yet we might grant him the rights of a native and a citizen
in our society, as well as the title *man*, despite the fact that he was a
stranger to our globe; but if he asked to be baptized, and to be regarded as a
convert to our faith, I believe that we would see great disputes arising among
the theologians. And if relations were opened up between ourselves and these
planetary men--whom M. Huygens says are not much different from men here--the
problem would warrant calling an Ecumenical Council to determine whether we
should undertake the propagation of our faith in regions beyond our globe. No
I've been following some of the internet discussions about people's complaints
about journals. The recent thread on Brian Leiter's blog (http://bit.ly/dvZuC)
prompted a few thoughts. Tried to post them on the blog but for some reason it
was rejected. I didnt wan't to let this bit of structured procrastination
(http://bit.ly/LG7Z) go to waste, so ...
The Tasang & Frey paper which Chris Bertram links to
(http://www.iew.unizh.ch/wp/iewwp280.pdf) is very interesting and shows that
whatever problems there are with peer review are not unique to our discipline.
The 'accept as is' (i.e. no 'revise and re-submit') proposal in this paper is