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
| # RubyGems with bad names, but some are quite useful. | |
| https://github.com/kenn/slavery | |
| https://github.com/jnunemaker/crack | |
| https://github.com/seattlerb/hoe # This is actually a play on the garden tool, but still :p | |
| https://github.com/ithouse/lolita | |
| https://github.com/joshkrueger/tranny | |
| https://github.com/aantix/sex_it_up | |
| https://github.com/LifebookerInc/hash_dealer | |
| https://github.com/francois/clitt |
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 Event | |
| include Mongoid::Document | |
| include Tire::Model::Search | |
| include Tire::Model::Callbacks | |
| field :name, type: String | |
| has_and_belongs_to_many :organizations | |
| has_many :tabs |
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
| search_results_page: { | |
| search_results: [ | |
| { | |
| type: relevant_event , // tabbed_event, other_event, followed_person, followed_event, followed_organization | |
| name: "One Angry Rap Star" , | |
| description: "He's angry…" , | |
| venue_name: "Caesar's Palace" , | |
| org_name: "Slim Shady" , | |
| reference_id: event_or_person_or_org_or_venue_id , | |
| image_urls: [ |
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
| step 'I am a registered user connected to facebook' do | |
| VCR.use_cassette 'authentication/facebook/test_users', :record => :new_episodes do | |
| @test_users = Koala::Facebook::TestUsers.new(app_id: Settings.facebook.app_id, secret: Settings.facebook.app_secret) | |
| @fb_user = @test_users.create(true, User.facebook_permissions.join(',')) | |
| @current_user ||= User.find_and_update_for_facebook_oauth(@fb_user) | |
| end | |
| end | |
| step 'I have :count :provider friends' do |count, provider| | |
| case provider.to_s |
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
| <select name="event[time_zone]" id="event_time_zone"><option value="American Samoa">(GMT-11:00) American Samoa</option> | |
| <option value="International Date Line West">(GMT-11:00) International Date Line West</option> | |
| <option value="Midway Island">(GMT-11:00) Midway Island</option> | |
| <option value="Hawaii">(GMT-10:00) Hawaii</option> | |
| <option value="Alaska">(GMT-09:00) Alaska</option> | |
| <option value="Pacific Time (US & Canada)">(GMT-08:00) Pacific Time (US & Canada)</option> | |
| <option value="Tijuana">(GMT-08:00) Tijuana</option> | |
| <option value="Arizona">(GMT-07:00) Arizona</option> | |
| <option value="Chihuahua">(GMT-07:00) Chihuahua</option> | |
| <option value="Mazatlan">(GMT-07:00) Mazatlan</option> |
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
| # Need a method that takes a date and based on a given time zone gives me the correct offset | |
| # with daylight savings time into consideration | |
| Time.zone = "Pacific US and Canada" | |
| Time.some_method_name("2013-03-09") #=> "PST -0800" | |
| Time.some_method_name("2013-03-10") #=> "PDT -0700" | |
| ############# | |
| ActiveSupport::TimeZone.all.sort_by(&:name).each_with_index do |timezone, index| |
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
| var timezones = function() { | |
| zones = [ | |
| { value: "Abu Dhabi", label: "Abu Dhabi" }, | |
| { value: "Adelaide", label: "Adelaide" }, | |
| { value: "Alaska", label: "Alaska" }, | |
| { value: "Almaty", label: "Almaty" }, |
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
| # string :url | |
| class Feed < ActiveRecord::Base | |
| validates :url, presence: true | |
| 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
| ><script type="text/javascript"> | |
| var _gaq = _gaq || []; | |
| _gaq.push(['_setAccount', 'UA-39403734-1']); | |
| _gaq.push(['_trackPageview']); | |
| (function() { | |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
| ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
| })(); |
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
| garage = ['122', '123', '1234', '1505'].collect { |n| rets_property.attribute[n] unless rets_property.attribute[n].nil? }.compact.first | |
| {garage: garage} |