Advertisement
Guest User

ricky

a guest
Feb 19th, 2009
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. ricky@ricky-desktop:~$ wget http://www.winterwell.com/software/jtwitter/jtwitter.jar
  2. --2009-02-19 16:30:26-- http://www.winterwell.com/software/jtwitter/jtwitter.jar
  3. Resolving www.winterwell.com... 91.197.32.158
  4. Connecting to www.winterwell.com|91.197.32.158|:80... connected.
  5. HTTP request sent, awaiting response... 200 OK
  6. Length: 197281 (193K) [application/java-archive]
  7. Saving to: `jtwitter.jar'
  8.  
  9. 100%[======================================>] 197,281 283K/s in 0.7s
  10.  
  11. 2009-02-19 16:30:27 (283 KB/s) - `jtwitter.jar' saved [197281/197281]
  12.  
  13. ricky@ricky-desktop:~$ scala -classpath jtwitter.jar
  14. Welcome to Scala version 2.8.0.r17079-b20090210164824 (Java HotSpot(TM) Client VM, Java 1.6.0_11).
  15. Type in expressions to have them evaluated.
  16. Type :help for more information.
  17.  
  18. scala> import scala.collection.jcl.Conversions._
  19. import scala.collection.jcl.Conversions._
  20.  
  21. scala> import winterwell.jtwitter.Twitter
  22. import winterwell.jtwitter.Twitter
  23.  
  24. scala> import winterwell.jtwitter.Twitter
  25. import winterwell.jtwitter.Twitter
  26.  
  27. scala> val twitter = new Twitter("ricky_clarkson", "censored")
  28. twitter: winterwell.jtwitter.Twitter = winterwell.jtwitter.Twitter@18f127c
  29.  
  30. scala> twitter.getFriendsTimeline take 10 map (s => s.getUser + ": " + s) foreach println
  31. Neil Bartlett: RT @webmink: Mind you, Brits would mistake WBC placards as support for a smoking ban... << Hehe. "God Hates Cigarettes!"
  32. Elliotte Harold: My first Twitter spam. Blocked.
  33. Michael Feathers: Watched 'Venus' last night. Alarming how that girl seduced Peter O'Toole.
  34. Josh Suereth: Looking at my scala group on pidgin, I see a list of 4 or 5 David's in a row. Time to change my middle name to my first name.
  35. Michael Campbell: : C# history and future (for you programmer geeks) http://ping.fm/ODf4l
  36. Neil Bartlett: Experimenting with Eclipse E4 JavaScript bundles
  37. Alex Cruise: http://download.java.net/jdk6/6u14/promoted/b01/changes/JDK6u14.b01.list.html looks like a barnburner of a HotSpot release coming up
  38. Alex Miller: starting meeting with super smart guys at unnamed important company about interesting geeky stuff...if only I could tell you more
  39. Dick Wall: the result? Control over the music playing on the big stereo from anywhere in the house, and 10,000+ tracks. Awesome!
  40. Dick Wall: Cool - over lunch I hooked up my iPhone as a remote to iTunes on the Mac Mini pushing audio to the appletv
  41.  
  42. scala> twitter.setStatus("Tweeting from the Scala interpreter")
  43. res1: winterwell.jtwitter.Twitter.Status = Tweeting from the Scala interpreter
  44.  
  45. scala>
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement