Skip to content

Instantly share code, notes, and snippets.

View wiseman's full-sized avatar

John Wiseman wiseman

View GitHub Profile
@wiseman
wiseman / gist:9102239
Created February 19, 2014 21:40
lisp metadata importer
lem:~ $ mdls variables.lisp
variables.lisp -------------
kMDItemAttributeChangeDate = 2005-09-08 11:30:18 -0700
kMDItemContentCreationDate = 2005-09-02 17:41:07 -0700
kMDItemContentModificationDate = 2005-09-02 17:41:08 -0700
kMDItemContentType = "com.lemonodor.lisp-source"
kMDItemContentTypeTree = (
"com.lemonodor.lisp-source",
"public.source-code",
"public.plain-text",
@wiseman
wiseman / mh370_doppler.py
Last active August 29, 2015 13:57
MH 370 vs. geostationaryish satellite with 3 deg. orbital inclination
import math
def deg2rad(d):
return d * math.pi / 180.0
# Convert spherical coordinates to cartesian.
def cart(c):
return [c[0] * math.sin(c[1]) * math.cos(c[2]),
c[0] * math.sin(c[1]) * math.sin(c[2]),
c[0] * math.cos(c[1])]
artist | name
----------------------------------------------------+---------------------------------------------------------------
Pearl Jam | Bu$hleaguer (Nassau Coliseum - Uniondale, NY 4/30/2003)
Pat Metheny | Another Chance
Neil Young | Mellow My Mind
Ween | I'll Be Your Jonny On The Spot
Los Fabulosos Cadillacs | Malbicho
Aphex Twin | 4
Los Invasores De Nuevo Leon | Rafael Caro Quintero
Oasis | Love Like A Bomb
@wiseman
wiseman / project.clj
Created May 13, 2014 00:54
cascalog project
(defproject mefi-taglines "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"conjars" "http://conjars.org/repo"}
:dependencies [[cascalog/cascalog-core "2.1.0"]
[clojure-opennlp "0.3.2"]
[clojurewerkz/crawlista "1.0.0-alpha18"]
[org.clojure/clojure "1.5.1"]]
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4+rpi1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
<VirtualHost *:80>
ServerName wsgihost
DocumentRoot /home/wiseman/public_html
WSGIScriptAlias / /home/wiseman/public_html/test.wsgi
WSGIChunkedRequest On
<Directory />
Require all granted
</Directory>
</VirtualHost>
@wiseman
wiseman / N662PD.log
Created March 19, 2015 05:17
Planeplotter log of N662PD (A8BCF0) on 2015/03/02
2015/03/02,15:01:12.000,1111111,A8BCF0,N662PD ,Unknown,0,1100,1100,34.10559,-118.19350,0,0,62.3,47.6,0,0000
2015/03/02,15:01:12.000,1111111,A8BCF0,N662PD ,Unknown,0,1100,1100,34.10650,-118.19212,0,0,62.3,47.6,0,0000
2015/03/02,15:01:12.000,1111111,A8BCF0,N662PD ,Unknown,0,1100,1100,34.10650,-118.19212,0,0,63.1,49.5,0,0000
2015/03/02,15:01:14.000,1111111,A8BCF0,N662PD ,Unknown,0,1100,1100,34.10706,-118.19125,0,0,63.1,49.5,0,0000
2015/03/02,15:01:14.000,1111111,A8BCF0,N662PD ,Unknown,0,1100,1100,34.10706,-118.19120,0,0,63.1,49.5,0,0000
2015/03/02,15:01:14.000,1111111,A8BCF0,N662PD ,Unknown,0,1100,1100,34.10706,-118.19120,0,0,63.9,50.1,0,0000
2015/03/02,15:01:34.000,1111111,A8BCF0,N662PD ,Unknown,0,1150,1150,34.11111,-118.18726,0,0,61.8,39.1,0,0000
2015/03/02,15:01:34.000,1111111,A8BCF0,N662PD ,Unknown,0,1150,1150,34.11125,-118.18697,0,0,61.8,39.1,0,0000
2015/03/02,15:01:34.000,1111111,A8BCF0,N662PD ,Unknown,0,1150,1150,34.11125,-118.18697,0,0,61.7,40.4,0,0000
2015/03/02,15:01:38.000,1111111,A8BCF0,N662
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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.