Skip to content

Instantly share code, notes, and snippets.

@makoto
Created February 25, 2009 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makoto/70531 to your computer and use it in GitHub Desktop.
Save makoto/70531 to your computer and use it in GitHub Desktop.
"url"
"/search.json?geocode=37.331689%2C-122.030731%2C25km"
"data class Array"
[#<ObjectValue id: nil, source_id: 13, attrib: "data_length", object: "37.331689,-122.030731", value: "15", update_type: nil, created_at: nil, updated_at: nil, pending_id: nil, user_id: nil>, #<ObjectValue id: nil, source_id: 13, attrib: "data", object: "37.331689,-122.030731", value: [{"text"=>"@eifion excellent service to the rails community! Thank you!", "from_user"=>"gluecode", "to_user"=>"eifion", "to_user_id"=>1717944, "id"=>1251426381, "iso_language_code"=>"en", "from_user_id"=>1058368, "source"=>"&lt;a href=&quot;http://www.atebits.com/software/tweetie/&quot;&gt;Tweetie&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:51 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/82311413/avatar_normal.jpg", "location"=>"San Jose, CA (37.405417,-121.9"}, {"text"=>"@clarakim awesomest smell in my entire life..in my garage behind where we make our clothes smell good. :(", "from_user"=>"jacdo", "to_user"=>"clarakim", "to_user_id"=>1418864, "id"=>1251426145, "iso_language_code"=>"en", "from_user_id"=>234128, "source"=>"&lt;a href=&quot;http://www.twhirl.org/&quot;&gt;twhirl&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:49 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/55400296/l_a135d91604d710162ace5cc596eedebd_normal.jpg", "location"=>"iPhone: 37.334518,-121.855637"}, {"text"=>"are there rooms to go to like MIRC or is it one big channel?", "from_user"=>"bakatadi", "to_user_id"=>nil, "id"=>1251426012, "iso_language_code"=>"en", "from_user_id"=>5396562, "source"=>"&lt;a href=&quot;http://twitter.com/&quot;&gt;web&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:44 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/81931777/mattbday04_normal.jpg", "location"=>"Santa Clara, CA"}, {"text"=>"@austinhill At the moment my only question is &quot;is it worth trying this&quot;, but I am not sure you can help with that. :-)", "from_user"=>"anaulin", "to_user"=>"austinhill", "to_user_id"=>33087, "id"=>1251425908, "iso_language_code"=>"en", "from_user_id"=>89567, "source"=>"&lt;a href=&quot;http://twidroid.com&quot;&gt;twidroid&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:42 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/34650722/anaulin_normal.jpg", "location"=>"Sunnyvale, CA"}, {"text"=>"@callmefro416 my coworker came in with that black mark, and like an ignorant broad I asked her &quot;what happened??&quot; lol whoopsie!", "from_user"=>"solstyce", "to_user"=>"callmefro416", "to_user_id"=>3760108, "id"=>1251425880, "iso_language_code"=>"en", "from_user_id"=>3488935, "source"=>"&lt;a href=&quot;http://iconfactory.com/software/twitterrific&quot;&gt;twitterrific&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:43 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/73652670/hat2_normal.jpg", "location"=>"iPhone: 37.415863,-121.879791"}, {"text"=>"@lisadnash try water district(s), perhaps...?", "from_user"=>"reeortiz", "to_user"=>"lisadnash", "to_user_id"=>3024961, "id"=>1251425798, "iso_language_code"=>"en", "from_user_id"=>5546791, "source"=>"&lt;a href=&quot;http://twitter.com/&quot;&gt;web&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:39 +0000", "profile_image_url"=>"http://static.twitter.com/images/default_profile_normal.png", "location"=>"San Jose, CA"}, {"text"=>"Heading to #dorkbotsf tonight (bike, #caltrain to sf, bike) with @jotong. Anyone else going?", "from_user"=>"skywalker404", "to_user_id"=>nil, "id"=>1251425524, "iso_language_code"=>"en", "from_user_id"=>566662, "source"=>"&lt;a href=&quot;http://userscripts.org/scripts/show/24398&quot;&gt;Endless Tweets&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:34 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/54930456/haircut_front__Small__normal.JPG", "location"=>"iPhone: 37.429810,-122.173889"}, {"text"=>"Just added user pictures to TwURLed News (http://TwURLedNews.com). Meanwhile, figuring how to to work with Twitter's huge social graphs.", "from_user"=>"NickArnett", "to_user_id"=>nil, "id"=>1251425116, "iso_language_code"=>"en", "from_user_id"=>4376694, "source"=>"&lt;a href=&quot;http://twitter.com/&quot;&gt;web&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:27 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/67113051/nick_thumb_normal.jpg", "location"=>"Santa Clara, CA"}, {"text"=>"@fairmonthotels very happy w/ stay at Fairmont Orchid...even after some confirmatory shopping up and down Kohala Coast! :)", "from_user"=>"elliottng", "to_user"=>"fairmonthotels", "to_user_id"=>1312721, "id"=>1251424863, "iso_language_code"=>"en", "from_user_id"=>8467, "source"=>"&lt;a href=&quot;http://twitterhelp.blogspot.com/2008/05/twitter-via-mobile-web-mtwittercom.html&quot;&gt;mobile web&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:22 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/64945090/ESN_5716_80x80_normal.JPG", "location"=>"Palo Alto"}, {"text"=>"Noby Noby Boy is the first game I know of that lets you EAT DINOSAURS!", "from_user"=>"mujah", "to_user_id"=>nil, "id"=>1251424846, "iso_language_code"=>"en", "from_user_id"=>1523298, "source"=>"&lt;a href=&quot;http://www.stone.com/Twittelator&quot;&gt;Twittelator&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:22 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/59536326/cover_large_normal.jpg", "location"=>"San Jose, CA"}, {"text"=>"I am not going to lie to you, I have had a tough time getting through Gravity's Rainbow", "from_user"=>"cashlock", "to_user_id"=>nil, "id"=>1251424584, "iso_language_code"=>"en", "from_user_id"=>4837143, "source"=>"&lt;a href=&quot;http://twitter.com/&quot;&gt;web&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:16 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/78104767/cashlock_normal.jpg", "location"=>"Mountain View, CA"}, {"text"=>"Inbox zero is about being ruthless. No mercy on procrastination. If you want to read it later make a todo. I now feel clean!", "from_user"=>"sh1mmer", "to_user_id"=>nil, "id"=>1251424121, "iso_language_code"=>"en", "from_user_id"=>164794, "source"=>"&lt;a href=&quot;http://iconfactory.com/software/twitterrific&quot;&gt;twitterrific&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:08 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/35179512/Photo_2_normal.jpg", "location"=>"iPhone: 37.470322,-122.157837"}, {"text"=>"@clarakim in old house we left the garage door open on accident a cat crawled behind our washer and dryer. it decided it wanted to die there", "from_user"=>"jacdo", "to_user"=>"clarakim", "to_user_id"=>1418864, "id"=>1251423996, "iso_language_code"=>"en", "from_user_id"=>234128, "source"=>"&lt;a href=&quot;http://www.twhirl.org/&quot;&gt;twhirl&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:08 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/55400296/l_a135d91604d710162ace5cc596eedebd_normal.jpg", "location"=>"iPhone: 37.334518,-121.855637"}, {"text"=>"@amtrekker hope you get in the top 50. Check out his video for the &quot;best job in the world&quot; http://bit.ly/15yEAv", "from_user"=>"wheresPAUL", "to_user"=>"amtrekker", "to_user_id"=>199569, "id"=>1251423893, "iso_language_code"=>"en", "from_user_id"=>5307627, "source"=>"&lt;a href=&quot;http://twitter.com/&quot;&gt;web&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:04 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/81320046/paulsanchez_normal.jpg", "location"=>"San Jose, CA"}, {"text"=>"Top RT @wilw: Wondering if you're a huge geek? If you laugh all the way through this Fark thread, you probably are: http://is.gd/kSUp", "from_user"=>"retwigger", "to_user_id"=>nil, "id"=>1251423797, "iso_language_code"=>"en", "from_user_id"=>3808534, "source"=>"&lt;a href=&quot;http://twitter.com/&quot;&gt;web&lt;/a&gt;", "created_at"=>"Wed, 25 Feb 2009 23:35:03 +0000", "profile_image_url"=>"http://s3.amazonaws.com/twitter_production/profile_images/72258862/icon_normal.jpg", "location"=>"Palo Alto, CA"}], update_type: nil, created_at: nil, updated_at: nil, pending_id: nil, user_id: nil>]
Processing SourcesController#ask to json (for 127.0.0.1 at 2009-02-25 23:36:04) [GET]
Parameters: {"client_id"=>"4837f753-8c03-4429-a371-2981c7422a17", "id"=>"13", "question"=>"37.331689,-122.030731", "app_id"=>"6"}
User Load (0.3ms) SELECT * FROM "users" WHERE ("users"."id" = 3) LIMIT 1
Source Load (0.5ms) SELECT * FROM "sources" WHERE ("sources"."id" = 13)
App Load (0.3ms) SELECT * FROM "apps" WHERE ("apps"."id" = 6)
Membership Load (0.3ms) SELECT * FROM "memberships" WHERE ("memberships"."user_id" = 3) AND ("memberships".app_id = 6) LIMIT 1
Credential Load (0.3ms) SELECT * FROM "credentials" WHERE ("credentials".membership_id = 6) LIMIT 1
Rendering sources/show
Completed in 634ms (View: 3, DB: 2) | 200 OK [http://localhost/apps/6/sources/13/ask?format=json&client_id=4837f753-8c03-4429-a371-2981c7422a17&question=37.331689%2C-122.030731]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment