Skip to content

Instantly share code, notes, and snippets.

View bryanl's full-sized avatar
🚩
Out in the streets

Bryan Liles bryanl

🚩
Out in the streets
View GitHub Profile
a = 1
def foo
puts "foo"
end
5+5
@bryanl
bryanl / n.rb
Created January 26, 2009 16:12
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'couchrest'
class Array
def to_h
Hash[*self.flatten]
end
>> 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"
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)
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}
require 'autotest/redgreen'
require 'autotest/growl'
" 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
"
When /^"(.*)" requests subscription types using password "(.*)"$/ do |site, password|
ImsAuth.any_instance.expects(:foo)
get "/subscription_types.json"
end
it "assigns session[:user]" do
session[:user].should_not be_nil
end
(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