Skip to content

Instantly share code, notes, and snippets.

mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
tar xzvf node-v0.4.2.tar.gz
cd node-v0.4.2
export PATH=/Developer/usr/bin:$PATH
ISYSROOT="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
export LINKFLAGS=$ISYSROOT CXXFLAGS=$ISYSROOT CFLAGS=$ISYSROOT
./configure --prefix=$HOME --without-ssl
make
@codebycliff
codebycliff / qtapp.rb
Created September 28, 2011 22:50
Simple Qt application written the Ruby way...
require 'Qt4'
app = QApplication.new([]) do
window = QMainWindow.new do
button = QPushButton.new("Quit") do
connect(self, :clicked) { qApp.quit }
end
set_central_widget(button)
set_window_title("Qt Application - The Ruby Way")
resize(300,200)