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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
| "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>org.mongodb.mongod</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/opt/local/bin/mongod</string> |
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 'action_controller/request' | |
| DEFAULT_TLD_LENGTH = 2 | |
| module ActionController | |
| class Request < Rack::Request | |
| def domain_with_default(tld_length = DEFAULT_TLD_LENGTH) | |
| domain_without_default(tld_length) | |
| 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
| { | |
| "average_rating": 4, | |
| "uri": "http:\/\/phil-desktop:3000\/social-media\/intro-to-foursquare\/li-4xht7e82kg", | |
| "price_aggregates": { | |
| "session_count": "1", | |
| "max_price": "25", | |
| "has_free": "0", | |
| "min_price": "25" | |
| }, | |
| "title": "Intro to foursquare", |
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 'active_record/connection_adapters/abstract/schema_definitions' | |
| module ActiveRecord | |
| module ConnectionAdapters | |
| class Column | |
| protected | |
| def self.fallback_string_to_date(string) | |
| new_date(*::Date._strptime(string, ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS[:default]).values_at(:year, :mon, :mday)) |
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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DNQQ7PMMMMMMMMMMMMMMMMM |
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
| named_scope :distinct_images, {:select => "distinct(image_id), #{table_name}.*"} |
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 'benchmark' | |
| namespace "tax" do | |
| desc "Import Tax Jurisdictions" | |
| task :import_jurisdictions => :environment do | |
| tms = Benchmark.measure do | |
| abcs = ActiveRecord::Base.configurations | |
| case abcs[RAILS_ENV]["adapter"] | |
| when "postgresql" | |
| username = abcs[RAILS_ENV]["username"] |
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
| ActionView::Base.field_error_proc = Proc.new {|html_tag, instance| %(<span class="fieldWithErrors">#{html_tag}</span>)} |
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
| ForumPost.find(:all, :limit => 2, :joins => :thread, :conditions => ['subcategory_id = ?', 292]) |
NewerOlder