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
a = 1 | |
def foo | |
puts "foo" | |
end | |
5+5 |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'nokogiri' | |
require 'couchrest' | |
class Array | |
def to_h | |
Hash[*self.flatten] | |
end |
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
>> a.asset.path(:normal) | |
=> "/Users/bryan/Development/sourcefire/radiant/snort200902/public/assets/1/darkpig_normal.png" | |
>> a.asset.path | |
=> "/Users/bryan/Development/sourcefire/radiant/snort200902/public/assets/1/darkpig_.png" |
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
module OinkCode | |
include HTTParty | |
include Radiant::Taggable | |
end | |
/Users/bryan/Development/sourcefire/radiant/snort200902/vendor/radiant/vendor/rails/activerecord | |
/lib/../../activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant': | |
Expected /Users/bryan/Development/sourcefire/radiant/snort200902/vendor/extensions/oinkcode | |
/lib/oink_code.rb to define OinkCode (LoadError) |
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
tell application "MacVim" | |
activate | |
set bounds of the first window to {0, 0, 950, 900} | |
end tell | |
tell application "Terminal" | |
activate | |
do script "cd ~/Development" | |
set bounds of the first window to {945, 0, 1440, 450} |
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
require 'autotest/redgreen' | |
require 'autotest/growl' |
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
" ir_black color scheme | |
" More at: http://blog.infinitered.com/entries/show/8 | |
" ******************************************************************************** | |
" Standard colors used in all ir_black themes: | |
" Note, x:x:x are RGB values | |
" | |
" normal: #f6f3e8 | |
" |
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
When /^"(.*)" requests subscription types using password "(.*)"$/ do |site, password| | |
ImsAuth.any_instance.expects(:foo) | |
get "/subscription_types.json" | |
end |
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
it "assigns session[:user]" do | |
session[:user].should_not be_nil | |
end |
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
(in /private/tmp/zn/vendor/extensions/reorder) | |
/opt/local/bin/ruby -I"/private/tmp/zn/vendor/extensions/reorder/lib" -I"/private/tmp/zn/vendor/extensions/reorder/lib" "/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/functional/pages_controller_extensions_test.rb" "test/functional/reorder_extension_test.rb" "test/unit/page_extensions_test.rb" "test/unit/tag_extensions_test.rb" | |
/opt/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /opt/local/lib/ruby/gems/1.8/gems/radiant-0.7.1/spec/datasets/tmp (Errno::EACCES) | |
from /opt/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir' | |
from /opt/local/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p' | |
from /opt/local/lib/ruby/1.8/fileutils.rb:215:in `reverse_each' | |
from /opt/local/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p' | |
from /opt/local/lib/ruby/1.8/fileutils.rb:201:in `each' | |
from /opt/local/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p' | |
from /opt/local/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/plugins/dataset/lib/dat |