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
| require 'rational' | |
| module Almost | |
| EPSILON = 0.001 | |
| module InstanceMethods | |
| def almost(epsilon = EPSILON) | |
| Almost::Number.new(self, epsilon) | |
| end | |
| 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
| ossl.c:118: error: expected ‘)’ before ‘*’ token | |
| ossl.c:119: error: expected ‘)’ before ‘*’ token | |
| make[1]: *** [ossl.o] Error 1 | |
| make: *** [all] Error 1 | |
| [2010-09-03 11:03:54] make | |
| ossl.c:118: error: expected ‘)’ before ‘*’ token | |
| ossl.c:119: error: expected ‘)’ before ‘*’ token | |
| make[1]: *** [ossl.o] Error 1 | |
| make: *** [all] Error 1 | |
| [2010-09-03 11:05:38] make |
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
| Process: JavaApplicationStub [79829] | |
| Path: /Applications/Minecraft.app/Contents/MacOS/JavaApplicationStub | |
| Identifier: com.Mojang Specifications.Minecraft.Minecraft | |
| Version: Minecraft 1.0.0 (1.0.0) | |
| Code Type: X86 (Native) | |
| Parent Process: launchd [149] | |
| Date/Time: 2010-09-21 11:20:02.865 -0400 | |
| OS Version: Mac OS X 10.6.4 (10F569) | |
| Report Version: 6 |
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
| module Liquid | |
| class Variable | |
| def render_with_html_escape(context) | |
| output = render_without_html_escape(context) | |
| if context.registers[:html_escape] && !output.html_safe? | |
| ERB::Util::html_escape(output) | |
| else | |
| output |
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
| Donalds-Decisiv-MacBook-Pro:pricing-trunk dball$ git svn rebase | |
| M test/unit/estimate_item_test.rb | |
| M app/helpers/operations_helper.rb | |
| M app/models/estimate_item.rb | |
| M app/models/portal/group.rb | |
| M app/concerns/broker_concerns.rb | |
| M app/concerns/estimate_concerns.rb | |
| M app/concerns/group_note_concerns.rb | |
| M app/views/leftnav/_warranty_info.html.erb | |
| Byte order is not compatible at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al) line 380, at /opt/local/lib/perl5/5.8.9/Memoize/Storable.pm line 21 |
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
| Factory.define(:passing_inspection_estimate, :parent => :estimate_with_items) do |f| | |
| f.after_create do |e| | |
| e.items << Factory(:estimate_item, :estimate => e, :inspection => true, :op => Factory(:inspection_op, :dealer => e.dealer)).tap do |item| | |
| inspection = item.inspections.first | |
| location = inspection.locations.first | |
| outcome = inspection.failures.detect { |outcome| outcome.performed } | |
| location.create_data!(:inspection_failure_id => outcome.id, :created_by => 'factory') | |
| end | |
| end | |
| 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 Deal | |
| attr_accessor :clubs | |
| def initialize | |
| @players = (1..4) | |
| @clubs = Array.new(13, @players.first) | |
| end | |
| def succ! |
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
| require File.dirname(__FILE__) + '/spades' | |
| require 'minitest/autorun' | |
| describe Deal do | |
| before do | |
| @deal = Deal.new | |
| end | |
| it "should default to 13 clubs dealt to the first player" do |
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
| ruby-1.9.2-p136 :004 > URI.parse(value) | |
| URI::InvalidURIError: bad URI(is not URI?): data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub/ | |
| /ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AAARe8L1Ekyky67QZ1hLnjM5UUde0ECwLJoExKcpp | |
| V0aCcGCmTIHEIUEqjgaORCMxIC6e0CcguWw6aFjsVMkkIr7g77ZKPJjPZqIyd7sJAgVGoEGv2xsBxqNgYPj/gAwXEQA7 | |
| from /Users/dball/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/uri/common.rb:156:in `split' | |
| from /Users/dball/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/uri/common.rb:174:in `parse' | |
| from /Users/dball/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/uri/common.rb:628:in `parse' | |
| from (irb):4 | |
| from /Users/dball/.rvm/rubies/ruby-1.9.2-p136/bin/irb:16:in `<main>' | |
| ruby-1.9.2-p136 :005 > ^D |
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 xml_equal?(*args) | |
| return nil if args.empty? | |
| docs = args.map do |xml| | |
| Nokogiri.XML(xml) { |config| config.strict } | |
| end | |
| signatures = docs.map do |doc| | |
| Lorax::Signature.new(doc.root).signature | |
| end | |
| signatures.uniq.length == 1 | |
| end |
OlderNewer