This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
/* Latitude/longitude spherical geodesy formulae & scripts (c) Chris Veness 2002-2012 */ | |
/* - www.movable-type.co.uk/scripts/latlong.html */ | |
/* */ | |
/* Sample usage: */ | |
/* var p1 = new LatLon(51.5136, -0.0983); */ | |
/* var p2 = new LatLon(51.4778, -0.0015); */ | |
/* var dist = p1.distanceTo(p2); // in km */ | |
/* var brng = p1.bearingTo(p2); // in degrees clockwise from north */ | |
/* ... etc */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function watch(label, input) { | |
var update = function() { | |
label.classList.remove(!input.checked); | |
label.classList.add(input.checked); | |
}; | |
update(); | |
input.addEventListener("change", update, false); | |
} | |
var inputs = document.querySelectorAll("input[type=checkbox]"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /room/ROOM_ID.json, /rooms.json, /room/ROOM_ID/speak.json | |
# Auth token and a dummy password (x) | |
curl -u AUTH_TOKEN:X | |
-H 'Content-Type: application/json' | |
-d '{"message":{"body":"message in campfire room"}}' | |
https://subdomain.campfirenow.com/room/ROOM_ID/speak.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure | |
--prefix=/usr/bin | |
--enable-gui=no | |
--enable-perlinterp=yes | |
--enable-pythoninterp=yes | |
--enable-rubyinterp | |
--with-features=huge | |
--with-compiledby=yourmom | |
--with-python-config-dir=/usr/lib/python2.7/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bashϟ | |
TERM=xterm-256color tmux new -d -n 'code' -s 'do you party?'ϟ | |
TERM=xterm-256color tmux neww -n 'codee'ϟ | |
TERM=xterm-256color tmux neww -d -n 'codeee'ϟ | |
TERM=xterm-256color tmux neww -d -n 'git'ϟ | |
TERM=xterm-256color tmux neww -d -n 'shell'ϟ | |
TERM=xterm-256color tmux neww -d -n 'serv'ϟ | |
TERM=xterm-256color tmux neww -d -n 'data'ϟ | |
TERM=xterm-256color tmux neww -d -n 'util'ϟ | |
TERM=xterm-256color tmux attach-session -t 'do you party?'ϟ |