Skip to content

Instantly share code, notes, and snippets.

View fabdrol's full-sized avatar

Fabian Tollenaar fabdrol

View GitHub Profile
@fabdrol
fabdrol / configure-log
Created May 6, 2012 11:51
configure log output
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cherokee configure '1.2.101', which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/cherokee/1.2.101 --sysconfdir=/usr/local/etc --localstatedir=/usr/local/var/cherokee --with-wwwuser=fabdrol --with-wwwgroup=www --enable-internal-pcre
## --------- ##
## Platform. ##
@fabdrol
fabdrol / brew-doctor-output
Created May 6, 2012 11:50
brew doctor output
$ brew doctor
Your system is raring to brew.
@fabdrol
fabdrol / brew-config-output
Created May 6, 2012 11:49
brew --config output
brew --config
HOMEBREW_VERSION: 0.9
HEAD: 6be084295c0968348339a10a924be3666d5e7321
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
@fabdrol
fabdrol / cherokee-make-error
Created May 6, 2012 11:48
Cherokee Make Error [brew install -v output]
brew install -v cherokee
==> Downloading http://www.cherokee-project.com/download/1.2/1.2.101/cherokee-1.2.101.tar.gz
Already downloaded: /Users/fabdrol/Library/Caches/Homebrew/cherokee-1.2.101.tar.gz
/usr/bin/tar xf /Users/fabdrol/Library/Caches/Homebrew/cherokee-1.2.101.tar.gz
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/cherokee/1.2.101 --sysconfdir=/usr/local/etc --localstatedir=/usr/local/var/cherokee --with-wwwuser=fabdrol --with-wwwgroup=www --enable-internal-pcre
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/cherokee/1.2.101 --sysconfdir=/usr/local/etc --localstatedir=/usr/local/var/cherokee --with-wwwuser=fabdrol --with-wwwgroup=www --enable-internal-pcre
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
@fabdrol
fabdrol / app.js
Created January 15, 2011 16:29
Code so far...
Number.prototype.toRad = function() { // convert degrees to radians
return this * Math.PI / 180;
};
var relativeHeading = function(obj) {
if(typeof obj !== 'object') {
return false;
} else {
return Math.atan2((Math.sin(obj.lon2-obj.lon1) * Math.cos(obj.lat2)), (Math.cos(obj.lat1) * Math.sin(obj.lat2) - Math.sin(obj.lat1) * Math.cos(obj.lat2) * Math.cos(obj.lon2-obj.lon1))) % (2 * Math.PI);
}