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
    
  
  
    
  | latas = Lata.find(:all, :params => {:city => 'Los Angeles'}) | |
| => [#<Lata:0x201fea8 @prefix_options={}, @attributes={"city"=>"Bahia de los Angeles", "id"=>1269, "state"=>"Baja California Norte"}>, #<Lata:0x201fe30 @prefix_options={}, @attributes={"city"=>"Glendale/Los Angeles", "id"=>6401, "state"=>"CA"}>, #<Lata:0x201f4e4 @prefix_options={}, @attributes={"city"=>"Los Angeles", "id"=>2323, "state"=>"CA"}>, #<Lata:0x201c1b8 @prefix_options={}, @attributes={"city"=>"Los Angeles", "id"=>7960, "state"=>"Biobio"}>, #<Lata:0x201aa5c @prefix_options={}, @attributes={"city"=>"Los Angeles", "id"=>7961, "state"=>"Biobio"}>, #<Lata:0x2019b20 @prefix_options={}, @attributes={"city"=>"Los Angeles", "id"=>7962, "state"=>"Biobio"}>, #<Lata:0x20197d8 @prefix_options={}, @attributes={"city"=>"Los Angeles", "id"=>2331, "state"=>"CA"}>, #<Lata:0x2019490 @prefix_options={}, @attributes={"city"=>"Los Angeles", "id"=>7963, "state"=>"Biobio"}>, #<Lata:0x2019148 @prefix_options={}, @attributes={"city"=>"Los Angeles", "id"=>2334, "stat | 
  
    
      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
    
  
  
    
  | # SQLite version 3.x | |
| # gem install sqlite3-ruby (not necessary on OS X Leopard) | |
| development: | |
| adapter: mysql | |
| database: mertd_development | |
| user: root | |
| password: | |
| timeout: 5000 | |
| # Warning: The database defined as "test" will be erased and | 
  
    
      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
    
  
  
    
  | sc | |
| Loading development environment (Rails 2.2.2) | |
| >> scope = 'http://gdata.youtube.com' | |
| => "http://gdata.youtube.com" | |
| >> next_url = 'http://example.com/change/to/your/app' | |
| => "http://example.com/change/to/your/app" | |
| >> secure = false | |
| => false | |
| >> session = true | |
| => true | 
  
    
      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
    
  
  
    
  | User.find(1208) | |
| ActiveResource::UnauthorizedAccess Exception: Failed with 401 Unauthorized | |
| log | |
| Processing UsersController#show to xml (for 127.0.0.1 at 2009-05-16 11:59:39) [GET] | |
| Parameters: {"id"=>"1208"} | |
| [4;35;1mSQL (0.1ms)[0m [0mSET SQL_AUTO_IS_NULL=0[0m | |
| [4;36;1mApiClient Columns (1.4ms)[0m [0;1mSHOW FIELDS FROM `api_clients`[0m | 
  
    
      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
    
  
  
    
  | user.save | |
| ArgumentError Exception: expected an attributes Hash, got #<User::CallSetting:0x3bf0934 @prefix_options={}, @attributes={"phone_type"=>nil, "phone_carrier"=>nil, "validation_code"=>nil, "updated_at"=>Sat May 16 16:19:19 UTC 2009, "number"=>"3016100640", "id"=>1208, "time_out"=>nil, "user_id"=>1208, "position"=>0, "phone_validated_at"=>nil, "created_at"=>Sat May 16 16:19:19 UTC 2009}> | 
  
    
      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
    
  
  
    
  | TIME_ZONES = [ | |
| ["(GMT-11:00) Midway Island", "Pacific/Midway"], | |
| ["(GMT-11:00) Samoa", "US/Samoa"], | |
| ["(GMT-10:00) Hawaii", "US/Hawaii"], | |
| ["(GMT-09:00) Alaska", "AST"], | |
| ["(GMT-08:00) Pacific Time (US & Canada)", "US/Pacific"], | |
| ["(GMT-07:00) Mountain Time (US & Canada)", "US/Mountain"], | |
| ["(GMT-06:00) Central America", "US/Central"], | |
| ["(GMT-06:00) Mexico City", "America/Mexico_City"], | |
| ["(GMT-06:00) Monterrey", "America/Monterrey"], | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env ruby | |
| require File.expand_path(File.dirname(__FILE__)) + '/../../config/boot' | |
| rails_root = File.expand_path RAILS_ROOT | |
| ENV["RAILS_ENV"] ||= "production" | |
| Dir.chdir(rails_root) # Change current directory to RAILS_ROOT | |
| require "config/environment" # Start up rails | |
| require 'stock.rb' | 
  
    
      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
    
  
  
    
  | describe "responding to GET link_account with VALID Token" do | |
| before do | |
| authenticate_user | |
| #[email protected] long session token => 'CPnEpdnfEhDDnN3RBg' | |
| @client_calendar_contacts = GData::Client::Base.new | |
| @client_calendar_contacts.authsub_token.stub!(:upgrade).and_return(@auth_handler) | |
| @auth_handler.stub!(:upgrade).and_return('CPnEpdnfEhDDnN3RBg') | |
| get :link_account, :token => '666_666_666' | |
| 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
    
  
  
    
  | describe "responding to GET link_account with VALID Token" do | |
| before do | |
| authenticate_user | |
| controller.stubs(:update_token).returns('valid_token') | |
| #controller.stubs(:current_user).returns(Factory(:user)) | |
| get :link_account, :token => 'single_token' | |
| end | |
| it "should redirect_to calendar contact" do | |
| controller.stubs(:current_user).returns(assigns(:current_user)) | 
  
    
      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 twitter = jetpack.lib.twitter | |
| jetpack.statusBar.append({ | |
| html: "foooo", | |
| width: 90, | |
| onReady: function(widget){ | |
| $(widget).click(function(){ | |
| twitter.getTwitLatestStatus( "jpemberthy", function(tweet){ | |
| var newTweet = tweet.text; | |
| jetpack.notifications.show( newTweet ); | |
| }); |