Skip to content

Instantly share code, notes, and snippets.

# An example to illustrate a problem with splat operator when using different Ruby versions
# When run under Ruby 2.1.5 the output is:
#
# Passing in arguments:
# access_control: 123
# (splat array): [:type, #<ToHashableClass:0x007fbf1c85d4b8 @hash={1=>2, 3=>4}>]
#
# ToHashableClass#to_hash method called
#
@piotrdz
piotrdz / gist:f1bfdab638caca1aa280
Last active August 29, 2015 14:20
Colobot compilation using Homebrew

After installing Developer Command Line Tools for OS X, you should have basic tools like clang and git installed. After that, you can grab other required packages via Homebrew. So as in instructions on the project page:

  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

And then:

  brew install cmake sdl sdl_image sdl_ttf boost glew physfs flac libsndfile libvorbis vorbis-tools gettext po4a

Gettext is installed in separate directory without adding the files to system path, so in order to get it working normally, you should call also: