Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#===============================================================================
# FILE: infopark_system_check.sh
#
# USAGE: infopark_system_check.sh
#
# DESCRIPTION: Checks various system components on whether they are installed
# in a version needed to participate in the Infopark workshops.
#
# AUTHOR: Falk Köppe, [email protected]
source 'http://rubygems.org'
gem 'rails', '3.0.3'
group :development do
gem 'ruby-prof', '< 0.9.0'
gem 'rack-contrib' #, :require => 'rack/contrib'
end
@awendt
awendt / scooby-doo.rb
Created September 24, 2010 13:09 — forked from fronx/scooby-doo.rb
def scooby(&block)
`say #{yield}`
end
scooby do
"be-doo-be-doo"
end
class Hash
def except(*blacklist)
self.reject {|key, value| blacklist.include?(key) }
end
def only(*whitelist)
self.reject {|key, value| !whitelist.include?(key) }
end
end