Skip to content

qrush/mwrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= MWRC 2011

Scripts and more for MWRC 2011!

= THE TALK

http://bit.ly/redis-behind-the-keys

= NOTICE

You've entered an untested playground/sandbox for my talk. Just a heads up!

= What's in here
.
├── compl1.rb        < Antirez's autocomplete script, I was trying to figure out how it worked.
├── dump.rdb         < redis-server dump file that contains tweets from the past 3 weeks of many speakers from #mwrc!
├── female-names.txt < data for antirez's autocomplete script
├── perms            < permissions example from the talk
│   ├── executable   < executable file for file perms test
│   ├── first.rb     < File.stat/mode example
│   ├── normal.txt   < blank file
│   ├── permify.rb   < wrote an OO wrapper around getbit/setbit, how stupid am i?
│   └── public.txt   < another blank file with different perms
├── reaper.rb        < how I got everyone's twitter user ID using the twitter api & curl
├── twroll.rb        < experiment/syntax highlight script. run after loading dump.rdb to see fun stats!
├── user_ids.txt     < everyone's twitter user ids
└── watch.rb         < twitterstream daemon to run and listen for tweets

= Stats

Did this as an experiment to show set operations. Here's some example output from twroll.rb:

unique words
9055

top 3 twitters
{"objo"=>"310", "jtimberman"=>"340", "elight"=>"353"}

top words
["the",
 "708",
 "to",
 "650",
 "a",
 "564",
 "I",
 "461",
 "of",
 "371",
 "and",
 "330",
 "for",
 "318",
 "is",
 "313",
 "in",
 "288",
 "you",
 "265"]

dirty words
"tweets:frequency:zedshaw"
{"fuck"=>"2"}
"tweets:frequency:dojo4"
{}
"tweets:frequency:bobbywilson0"
{}
"tweets:frequency:wayneeseguin"
{}
"tweets:frequency:jtimberman"
{"fuck"=>"2"}
"tweets:frequency:geemus"
{}
"tweets:frequency:qrush"
{}
"tweets:frequency:cwyckoff"
{}
"tweets:frequency:brynary"
{}
"tweets:frequency:jimweirich"
{}
"tweets:frequency:mattyoho"
{}
"tweets:frequency:prestonism"
{}
"tweets:frequency:igrigorik"
{}
"tweets:frequency:mjijackson"
{}
"tweets:frequency:emullet"
{}
"tweets:frequency:objo"
{"shit"=>"2", "ass"=>"4"}
"tweets:frequency:elight"
{"ass"=>"2", "piss"=>"2"}
"tweets:frequency:AndyMaleh"
{}
"tweets:frequency:devlindaley"
{}
"tweets:frequency:wycats"
{}

About

sandbox/playground for my MWRC 2011 talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages