github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

benschwarz / benschwarz-site

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Tree: 6dd0fd6

click here to add a description

click here to add a homepage

  • Branches (1)
    • master
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

My website — Read more

  cancel

http://www.germanforblack.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added a new article (needs spellchecking and review). Cleaned up steam.rb 
benschwarz (author)
Fri Jul 31 04:03:56 -0700 2009
commit  6dd0fd6523e350be24b90d010e4d1f6f82cad60e
tree    6fa3eaa9b78ce63e9a9459cc6ce1f0897486c078
parent  e40964e3ce392f1a846799eb8ba95cdf7ba724af
benschwarz-site / lib / stream.rb lib/stream.rb
100644 45 lines (36 sloc) 1.2 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'digest/sha1'
 
Smoke.data(:flickr) do
  url "http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=1e99cd67056e382c382826fb95436782&user_id=36821533%40N00&tags=germanforblack-site&format=json&nojsoncallback=1&extras=url_s", :type => :json
  path :photos, :photo
end
 
Smoke.data(:twitter) do
  url "http://twitter.com/users/show.json?screen_name=benschwarz"
end
 
Smoke.feed(:delicious) do
  url "http://feeds.delicious.com/v2/rss/bschwarz?count=5"
end
 
Smoke.data(:upcoming) do
  url "http://upcoming.yahooapis.com/services/rest/?method=user.getWatchlist&api_key=7c06afe3f8&user_id=908522&show=upcoming&format=json"
  path :rsp, :event
 
  emit do
    keep :status, /attend/
    truncate 1
  end
end
 
Smoke.data(:github) do
  url "http://github.com/api/v2/json/repos/show/benschwarz"
  path :repositories
  
  emit do
    sort :watchers
    reverse
    truncate 5
  end
end
 
Smoke.data(:slideshare) do
  prepare do
    timestamp = Time.now.to_i
    hash = Digest::SHA1.hexdigest("FeXBxg0G#{timestamp}")
    url "http://www.slideshare.net/api/2/get_slideshows_by_user?username_for=benschwarz&api_key=uQqJ57cz&ts=#{timestamp}&hash=#{hash}"
  end
  
  path :User, :Slideshow
end
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server