This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def scooby(&block) | |
| `say #{yield}` | |
| end | |
| scooby do | |
| "be-doo-be-doo" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |