Skip to content

Instantly share code, notes, and snippets.

View granteagon's full-sized avatar

Grant Eagon granteagon

View GitHub Profile
@granteagon
granteagon / gist:3298488
Created August 8, 2012 20:37
Brew doctor for node install failure on Lion
Grants-MacBook-Air:Time Machine grant$ brew doctor
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libfreetype.la /usr/local/lib/libjpeg.la /usr/local/lib/libosxfuse_i32.la /usr/local/lib/libosxfuse_i64.la /usr/local/lib/libpng12.la /usr/local/lib/libpng14.la /usr/local/lib/libpng15.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
@granteagon
granteagon / gist:3298450
Created August 8, 2012 20:35
brew install node fails Lion
Grants-MacBook-Air:Time Machine grant$ brew install node
==> Downloading http://nodejs.org/dist/v0.8.6/node-v0.8.6.tar.gz
Already downloaded: /Users/grant/Library/Caches/Homebrew/node-0.8.6.tar.gz
==> ./configure --prefix=/usr/local/Cellar/node/0.8.6 --without-npm
==> make install
make -C out BUILDTYPE=Release V=1
make[1]: Nothing to be done for `all'.
ln -fs out/Release/node node
python tools/install.py install
installing /usr/local/Cellar/node/0.8.6/include/node/ares.h
@granteagon
granteagon / waitUntil.js
Created March 29, 2012 15:01
Wait until a function returns true, then execute a callback
/*
Author: Grant Eagon
Function: Runs a function every number of milliseconds you specify and executes
a callback function when that function returns true.
Note: The reason for using a function instead of testing a variable is to
avoid using the eval() function.