Skip to content

Instantly share code, notes, and snippets.

@jnwhiteh
jnwhiteh / pom.xml
Created June 27, 2012 14:29
Maven build file for aepfacts database
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="https://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.develogical</groupId>
<version>1.0-SNAPSHOT</version>
<artifactId>aepfacts</artifactId>
<dependencies>
<dependency>
@jnwhiteh
jnwhiteh / main.tex
Created May 14, 2012 09:45
LatexBox_GetTexRoot issue
\documentclass{article}
\begin{document}
\include{section1}
\end{document}
@jnwhiteh
jnwhiteh / common.vim
Created March 13, 2012 10:13
Add support for %! TEX root = foo.tex to LatexBox
" 2a. scan current file for %! TEX root = foo.tex
let texfile = matchlist(getline(1), '%!TEX root = \(.*\)')[1]
if texfile != ""
return texfile
endif
@jnwhiteh
jnwhiteh / Makefile
Created September 5, 2011 17:57
Problem with channel receive
include $(GOROOT)/src/Make.inc
TARG=foo
GOFILES=\
foo.go \
include $(GOROOT)/src/Make.pkg
@jnwhiteh
jnwhiteh / install-ljitrocks.sh
Created August 4, 2011 14:49
Install luajit+luarocks in sandboxed environment
#!/usr/bin/env bash
set -e
die() {
echo "$1";
exit 1;
}
# Fetch and install LuaJIT/LuaRocks into the local directory
@jnwhiteh
jnwhiteh / updatecontacts.py
Created July 26, 2011 11:57
Update contacts using Google contacts API
import atom
import re
import gdata.contacts.data
import gdata.contacts.client
import gdata.gauth
# This script updates all contacts with email addresses @comlab.ox.ac.uk to
# @cs.ox.ac.uk to go along with the renaming of our department.
sourcename = "some-name-for-this-script-v1"
@jnwhiteh
jnwhiteh / install.sh
Created June 13, 2011 16:14
lua+luarocks in sandboxed environment
#!/usr/bin/env bash
set -e
die() {
echo "$1";
exit 1;
}
# Fetch and install Lua/LuaRocks/Kepler into the local directory
@jnwhiteh
jnwhiteh / install_mongrel2.sh
Created December 2, 2010 11:58
Script that can be used to install zeromq/mongrel2 into a sandboxed environment
# Installs Mongrel/ZeroMQ/Sqlite into a sandboxed environment
set -o errexit
set -o nounset
PWD=`pwd`
SANDBOX="$PWD/sandbox"
mkdir -p "$SANDBOX/src"
pushd "$SANDBOX/src"
#!/usr/bin/env bash
set -e
die() {
echo "$1";
exit 1;
}
# Fetch and install Lua/LuaRocks into the local directory
require 'formula'
class Go <Formula
head 'https://go.googlecode.com/hg/', :revision => 'release'
homepage 'http://golang.org'
aka 'google-go'
skip_clean 'bin'