This file contains 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
Klass.setup do |i| | |
i.foo = "chunky #{bacon}" | |
end | |
a = Klass.build :bacon => "foo" # sau oricum altcumva | |
a.foo #=> "chunky foo" |
This file contains 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
begin | |
require 'autotest/timestamp' | |
require 'autotest/growl' | |
Autotest::Growl::image_dir = 'ampelmaennchen' | |
Autotest::Growl::hide_label = true | |
Autotest::Growl::sticky_failure_notifications = true | |
rescue LoadError | |
puts "Make sure you have the autotest-growl gem installed." |
This file contains 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
# IP Check | |
function ip { | |
local current_ip=`curl -s www.whatismyip.com/automation/n09230945.asp` | |
echo "Current external IP address is: $current_ip" | |
echo $current_ip | pbcopy | |
} |
This file contains 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
[Sun, 10 Oct 2010 20:14:39 +0300] ERROR: homebrew[hub] (/Users/xhr/.cinderella/cookbooks/homebrew/recipes/misc.rb:12:in `from_file') had an error: | |
/Users/xhr/Developer/bin/brew install hub returned 1, expected 0 | |
/Library/Ruby/Gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:184:in `handle_command_failures' | |
/Library/Ruby/Gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:131:in `run_command' | |
/Library/Ruby/Gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:199:in `run_command_with_systems_locale' | |
/Users/xhr/.cinderella/cookbooks/homebrew/providers/homebrew.rb:33:in `run_brew_command' | |
/Users/xhr/.cinderella/cookbooks/homebrew/providers/homebrew.rb:23:in `install_package' | |
/Library/Ruby/Gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/package.rb:60:in `action_install' | |
/Library/Ruby/Gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:in `send' | |
/Library/Ruby/Gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:in `run_action' |
This file contains 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
Feature: Localization | |
As a Japanese visitor | |
I want to access a localized version of seesmic.com | |
In order to have a better user experience with Seesmic Web | |
Scenario: Redirect based on UserAgent | |
Given a Japanese browser UserAgent | |
When I visit seesmic.com | |
Then I should get redirected to seesmic.jp |
This file contains 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
(function () { | |
if (window.fluid) { | |
var NoTargets = { | |
FRAMES: [], | |
getFrames: function () { | |
var _timer = setInterval(function () { | |
if(/complete/.test(document.readyState)) { | |
clearInterval(_timer); |
This file contains 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
<script type="text/javascript"> | |
var _timer = setInterval(function() { | |
if (/loaded|complete/.test(document.readyState)) { | |
clearInterval(_timer); | |
var links = document.getElementsByTagName('a'); | |
for(i = 0; i < links.length; i++) | |
links[i].removeAttribute("target"); | |
} | |
}, 10); |
This file contains 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
APP_ROOT = File.dirname(File.expand_path(__FILE__)) | |
CONFIG_FILE = File.join(APP_ROOT, "db", "config.yml") | |
MIGRATIONS_DIR = File.join(APP_ROOT, "db", "migrate") | |
namespace :db do | |
require "activerecord" | |
task :environment do | |
config = YAML.load_file(CONFIG_FILE) |
This file contains 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
Summary: RubyGems is the premier ruby packaging system | |
Name: rubygems | |
Version: 1.3.6 | |
Release: 1%{?dist} | |
License: Ruby | |
Group: Development/Libraries | |
URL: http://rubyforge.org/projects/rubygems/ | |
Source0: %{name}-%{version}.tgz | |
BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
BuildRequires: ruby >= 1.8.6 |
This file contains 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
Summary: Fast, multi-threaded malloc() and nifty performance analysis tools | |
Name: google-perftools | |
Vendor: Google | |
Version: 1.5 | |
Release: 1%{?dist} | |
License: BSD | |
Group: Development/Tools | |
URL: http://code.google.com/p/google-perftools/ | |
Source0: google-perftools-%{version}.tar.gz | |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |