Skip to content

Instantly share code, notes, and snippets.

@mallipeddi
Created June 30, 2009 14:33
Show Gist options
  • Save mallipeddi/138182 to your computer and use it in GitHub Desktop.
Save mallipeddi/138182 to your computer and use it in GitHub Desktop.
$erl -pa "../couchdb/src/couchdb" -pa "../erlang_twitter/ebin"
Erlang (BEAM) emulator version 5.6.5 [source] [smp:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.6.5 (abort with ^G)
1> mattress:run_with(tweetbed).
lookup out: [{ok,{"vyom",
{user,"6151","Deepak Jois","vyom","Seattle",
"Geek, Bibliophile and Philosopher",
"http://s3.amazonaws.com/twitter_production/profile_images/14202382/mypictr_Flickr_normal.jpg",
"http://deepak.jois.name","false","467",
{status,"Sun Jun 21 21:18:35 +0000 2009","2270067125",
"@sherenejose That page is 6 months old. Out of 30+ books, 5 were unsold. I eventually shipped them to India.",
"<a href=\"http://www.atebits.com/\">Tweetie</a>",
"false","2270003266","16071228","false",
undefined},
"9ae4e8","000000","0000ff","e0ff92","87bc44","161",
"Fri Sep 15 09:07:22 +0000 2006","20","-28800",
"Pacific Time (US & Canada)","0","0","1635"}}},
{ok,{"jackerhack",
{user,"747153","Kiran Jonnalagadda","jackerhack",
"Bangalore, India","Apprentice cat herder",
"http://s3.amazonaws.com/twitter_production/profile_images/22254822/madhavan_park_normal.jpg",
"http://jace.zaiki.in/","false","704",
{status,"Mon Jun 22 12:47:27 +0000 2009","2278312852",
"lost the post. :( just because laptops have batteries doesn't mean one can dispense with the Ctrl+S habit.",
"<a href=\"http://www.atebits.com/\">Tweetie</a>",
"false",[],[],"false",undefined},
"9AE4E8","333333","0084B4","DDFFCC","BDDCAD","161",
"Fri Feb 02 10:42:07 +0000 2007","27","19800",
"Mumbai","0","false","1572"}}}]
fullreduce out: {ok,{dict,34,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[["Alaska"|8]],
[["Minsk"|1],["London"|8],[[]|8]],
[["Central Time (US & Canada)"|10],
["Paris"|2],
["Brasilia"|1],
["Mid-Atlantic"|1]],
[["Sydney"|2],["Stockholm"|2]],
[["Melbourne"|1],
["Mountain Time (US & Canada)"|2]],
[["Dublin"|1],["Tokyo"|1],["Cairo"|1]],
[["Hawaii"|10],
["Mumbai"|11],
["Wellington"|1],
["Brussels"|1]],
[["New Delhi"|2],
["Beijing"|2],
["Buenos Aires"|1],
["Copenhagen"|1]],
[["Pacific Time (US & Canada)"|18]],
[["Quito"|1]],
[],
[["Berlin"|3]],
[["Madrid"|2]],
[["Chennai"|11]],
[["Kuala Lumpur"|6],["Rome"|1]],
[["Singapore"|63],
["Eastern Time (US & Canada)"|22],
["Greenland"|2],
["Jerusalem"|1]]}}}}
ok
2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment