Skip to content

Instantly share code, notes, and snippets.

View Sharpie's full-sized avatar

Charlie Sharpsteen Sharpie

View GitHub Profile
@Sharpie
Sharpie / detailed_reporter.R
Created April 12, 2011 19:05
A detailed test reporter for test_that
require(stringr)
DetailedReporter <- testthat:::Reporter$clone()
DetailedReporter$do({
self$width <- getOption('width')
self$n_tests <- 0
self$n_failed <- 0
self$failures <- list()
self$start_time <- NULL
@Sharpie
Sharpie / tikz_external_pgf210.patch
Created April 18, 2011 09:12
Patch to remove the \newwrite allocations made by the TikZ external library
This patch is for PGF-2.10
diff --git a/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex b/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
index d8eaca5..b860e51 100644
--- a/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
+++ b/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
@@ -391,16 +391,16 @@
}%
\def\pgf@externalend@storeshifts#1{%
@Sharpie
Sharpie / eps_vs_tikz.Rnw
Created May 10, 2011 21:54
Pepsi challenge: eps() vs tikz()
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{lipsum}
\usepackage[nogin]{Sweave}
\usepackage{tikz}
\begin{document}
@Sharpie
Sharpie / install.log
Created August 31, 2011 02:00
PyQWT misbehaving during install
==> make install
make install
cp -f _iqt.so /usr/local/Cellar/pyqt/4.8.5/lib/python/PyQt4/Qwt5/_iqt.so
cp -f Qwt.so /usr/local/Cellar/pyqt/4.8.5/lib/python/PyQt4/Qwt5/Qwt.so
cp -f __init__.py /usr/local/Cellar/pyqt/4.8.5/lib/python/PyQt4/Qwt5/__init__.py
cp -f __init__.pyc /usr/local/Cellar/pyqt/4.8.5/lib/python/PyQt4/Qwt5/__init__.pyc
cp -f anynumpy.py /usr/local/Cellar/pyqt/4.8.5/lib/python/PyQt4/Qwt5/anynumpy.py
cp -f anynumpy.pyc /usr/local/Cellar/pyqt/4.8.5/lib/python/PyQt4/Qwt5/anynumpy.pyc
cp -f grace.py /usr/local/Cellar/pyqt/4.8.5/lib/python/PyQt4/Qwt5/grace.py
cp -f grace.pyc /usr/local/Cellar/pyqt/4.8.5/lib/python/PyQt4/Qwt5/grace.pyc
@Sharpie
Sharpie / VBox_Lion.patch
Created September 24, 2011 07:03
VirtualBox Lion Support
diff -Naru VirtualBox-4.1.2_OSE.orig/include/iprt/system.h VirtualBox-4.1.2_OSE/include/iprt/system.h
--- VirtualBox-4.1.2_OSE.orig/include/iprt/system.h 2011-01-14 21:15:06.000000000 +0100
+++ VirtualBox-4.1.2_OSE/include/iprt/system.h 2011-09-21 20:47:05.000000000 +0200
@@ -168,6 +168,8 @@
RTSYSDMISTR_PRODUCT_SERIAL,
/** The system manufacturer. */
RTSYSDMISTR_MANUFACTURER,
+ /** The product board ID. */
+ RTSYSDMISTR_PRODUCT_BOARD_ID,
/** The end of the valid strings. */
@Sharpie
Sharpie / speed_results.csv
Created October 4, 2011 16:15
Poppler/MuPDF rendering shootout
backend render type dpi milliseconds
mupdf partial page 100 86
mupdf partial page 200 25
mupdf partial page 300 13
mupdf partial page 400 12
mupdf partial page 500 10
mupdf partial page 600 10
mupdf partial page 700 9
mupdf partial page 800 8
mupdf partial page 900 7
@Sharpie
Sharpie / rasdaman_os_x.patch
Created November 10, 2011 08:03
Patches to enable Rasdaman to compile on OS X
From 74ed3f1e3e965426168bafa8f46e044261ce8aba Mon Sep 17 00:00:00 2001
From: Charlie Sharpsteen <[email protected]>
Date: Mon, 27 Sep 2010 14:36:43 -0700
Subject: [PATCH 1/4] Disable libgcrypt and libnsl in configure.ac
OS X does not have libcrypt or libnsl. This commit allows Rasdaman to compile
on OS X but most likely breaks Linux compiles.
Someone who actually knows how to use the autotools should revise these changes
so that the libraries are only disabled on OS X.
@Sharpie
Sharpie / update-brew-core
Created January 25, 2012 22:23
Shell script for stripping all Formula-related commits out of a Homebrew repository
#!/usr/bin/env bash
# Change to repository prefix so that git commands will work.
cd `brew --prefix`
# Ensure Homebrew is up to date and create a new branch called homebrew-core
brew update
git checkout master
git branch -D homebrew-core
@Sharpie
Sharpie / LICENSE
Created February 1, 2012 21:56
Handout on using makefiles to compile Fortran source code
Written in 2012 by Charlie Sharpsteen
All files contained in this directory I hereby place in the public domain to
the extent governable by law, unless noted otherwise. Explicitly, the files are
released under the terms of CC0:
http://creativecommons.org/publicdomain/zero/1.0
@Sharpie
Sharpie / 0001-Use-GetEventHandler-to-call-AddPendingEvent.patch
Created February 16, 2012 19:38
Patches to allow Spatialite GUI to build against wxWidgets 2.9.x, 64 bit, on OS X
From c2751383a22aff1b4fec59d5f536d551e4655c90 Mon Sep 17 00:00:00 2001
From: Charlie Sharpsteen <[email protected]>
Date: Thu, 16 Feb 2012 11:19:40 -0800
Subject: [PATCH 1/2] Use GetEventHandler to call AddPendingEvent
`AddPendingEvent` is now a private method in wxWidgets 2.9.x so we must access
the event handler and use that to add the event.
---
ResultSetView.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)