Skip to content

Instantly share code, notes, and snippets.

View amahon's full-sized avatar

Andrew Mahon amahon

View GitHub Profile
@amahon
amahon / gist:2c938c8e06177a46a8f50a0ceed5a461
Created January 15, 2020 04:43
docker-compose-data-science/docker-compose.yaml with postgres persistant data
version: "3"
services:
jupyter:
build:
context: ./jupyter
ports:
- "8888: 8888"
links:
- postgres
### Keybase proof
I hereby claim:
* I am amahon on github.
* I am amahon (https://keybase.io/amahon) on keybase.
* I have a public key whose fingerprint is F3A0 BD62 3375 49C7 28E5 188E 2CDF 44B0 8588 B56B
To claim this, I am signing this object:
@amahon
amahon / index.html
Created August 17, 2012 18:02 — forked from mojodna/index.html
D3 + ModestMaps
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#map {
width: 1000px;
height: 600px;
}
path {
@amahon
amahon / TileLayer.TileJSON.js
Created August 1, 2012 02:28 — forked from DGuidi/TileLayer.TileJSON.js
Leaflet TileCanvas
L.TileLayer.TileJSON = L.TileLayer.Canvas.extend({
options: {
debug: false
},
tileSize: 256,
initialize: function (options) {
L.Util.setOptions(this, options);
@amahon
amahon / state.js
Created May 9, 2012 19:20
javascript state library
var state = (function($){
var disp = $({})
var data = {}
var refs = {}
var handlers = {}
var _id=0
function getId(){return ++_id}
var that = {
@amahon
amahon / gist:1649689
Created January 20, 2012 21:24 — forked from masaki/gist:1238005
PhantomJS on CentOS-5
# SEE: http://d.hatena.ne.jp/shim0mura/20110730/1312046133
# SEE: https://gist.github.com/1031961
# SEE: http://atrpms.net/documentation/install/
# 1. prepare
$ cat /etc/yum.repos.d/atrpms.repo
[atrpms-stable]
name=ATrpms RHEL5 stable
baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/stable/
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms