Skip to content

Instantly share code, notes, and snippets.

View dstndstn's full-sized avatar

Dustin Lang dstndstn

View GitHub Profile
@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
@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}
}
684,516
105,319
54,421
170,691
505,610
168,125
398,327
426,273
139,969
401,1000
import os
import fitsio
import numpy as np
R,C = 3,2
A = np.arange(6).reshape((R,C))
print 'A'
print A
ar = []
@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
@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>
diff --git a/drvrfile.c b/drvrfile.c
index fd89233..2e9890f 100644
--- a/drvrfile.c
+++ b/drvrfile.c
@@ -772,28 +772,33 @@ int file_is_compressed(char *filename) /* I - FITS file name */
strcat(filename,".gz");
if (file_openfile(filename, 0, &diskfile))
{
- strcpy(filename, tmpfilename);
- strcat(filename,".Z");
@dstndstn
dstndstn / ngc2000names.c
Created June 14, 2014 18:39
ngc2000names
{ .is_ngc = TRUE,
.id = 1952,
.name = "M 1"
},
{ .is_ngc = TRUE,
.id = 7089,
.name = "M 2"
},
{ .is_ngc = TRUE,
.id = 5272,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.