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 'digest' | |
| require 'murmurhash3' #gem install murmurhash3 | |
| require 'trollop' | |
| class BloomFilter | |
| def initialize(size) | |
| @size = size.to_i || 2_000_000 | |
| @num_inputs = 0 | |
| @bloom_filter = Array.new(size) |
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
| %a.btn-sec.offer-button{:href => "#", :class => [offers_enabled_class, (is_linked && "linked" || "unlinked")], 'attr-deal_id' => deal.id, 'attr-logged_in' => "#{logged_in?}", 'attr-title' => deal.title, 'attr-merchant' => deal.merchant.name, 'attr-expires' => deal.end_at.strftime('%b %-d, %Y'), 'attr-image_url' => ugasset_url(deal.image)} | |
| = (is_linked ? 'Unlink from Card' : 'Link to Card') |
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
| ActiveRecord::Schema.define(:version => 20110613211706) do | |
| create_table "answers", :force => true do |t| | |
| t.text "answer" | |
| t.integer "question_id" | |
| end | |
| create_table "questions", :force => true do |t| | |
| t.string "question" | |
| 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
| ******************************************************************************** | |
| Using script: | |
| require 'rubygems' | |
| require 'selenium-webdriver' | |
| $DEBUG = true | |
| Selenium::WebDriver.for(:firefox).quit | |
| Results below: |
NewerOlder