Skip to content

Instantly share code, notes, and snippets.

View dstndstn's full-sized avatar

Dustin Lang dstndstn

View GitHub Profile
@dstndstn
dstndstn / gist:6213419
Created August 12, 2013 18:11
SubmitJob.aspx source
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Pragma" content="no-cache" />
<title>CasJobs</title>
<link href="cjobs.css" rel="stylesheet" />
<script type="text/javascript" src="scripts/submitjob.js"></script>
<script type="text/javascript" src="scripts/shortcut.js"></script>
@dstndstn
dstndstn / gist:6156802
Last active December 20, 2015 15:49
brew environment for homebrew issue #21569 (lesstif build error related to sed)
dstn@swanky:/private/tmp/lesstif-fW3x/lesstif-0.95.2
> rm ./include/Motif-2.1/Xm/Xm.h.tmp
dstn@swanky:/private/tmp/lesstif-fW3x/lesstif-0.95.2
> make
Making all in Xm
sed is: /usr/bin/sed
SED is: /usr/local/Library/ENV/4.3/sed
set: ACLOCAL_PATH=/usr/local/share/aclocal:/opt/X11/share/aclocal
Apple_PubSub_Socket_Render=/tmp/launch-7yHNcH/Render
import os
import fitsio
import numpy as np
R,C = 3,2
A = np.arange(6).reshape((R,C))
print 'A'
print A
ar = []
684,516
105,319
54,421
170,691
505,610
168,125
398,327
426,273
139,969
401,1000
@dstndstn
dstndstn / gist:4622335
Created January 24, 2013 14:32
thesis.bib from dustin's phd -- most of the SDSS references will be in here; search for 'sdss'
%Mikolajczyk05acomparison,
@ARTICLE{affineinvariant,
author = {K. Mikolajczyk and T. Tuytelaars and C. Schmid and A. Zisserman and J. Matas and F. Schaffalitzky and T. Kadir and L. Van Gool},
title = {A comparison of affine region detectors},
journal = {{I}nternational {J}ournal of {C}omputer {V}ision},
year = {2005},
volume = {65},
pages = {43--72}
}
@dstndstn
dstndstn / build log (gcc)
Created January 21, 2013 16:20
glib-2.34.3 build logs on homebrew, mac osx 10.8.2, clang and gcc versions
/usr/local/bin/brew: loading /usr/local/Library/Formula/glib.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/xz.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/gettext.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/libffi.rb
/usr/local/Library/Formula/glib.rb: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/Formula/glib.rb: loading /usr/local/Library/Formula/xz.rb
/usr/local/Library/Formula/glib.rb: loading /usr/local/Library/Formula/gettext.rb
/usr/local/Library/Formula/glib.rb: loading /usr/local/Library/Formula/libffi.rb
/usr/local/Library/Formula/glib.rb: loading /usr/local/Library/Formula/python.rb