Post Tagged government

a new dawn

Tuesday, 01 January 2009

Thanks FLicker for this sunlight + farm photo

 

I will surely harness the power of the sun.

require 'sunlight'
include Sunlight
Sunlight.api_key = "get your own "
 
mois_congress =  Legislator.all_for(:address => "321 W 7th St Kansas City, MO 64105")
s = mois_congress[:senior_senator]
 
p "Why hello Ryan, my name is #{s.firstname + ' ' + s.lastname} !  "
p "Listen, I understand that you are interested in my activities."
p "Just give me a call at #{s.phone} and we can talk things over."

drop this hottness into your local ruby prompt and get ready to program the government.


government.opacity = 100

Sunday, 01 January 2009

To bad there is no API to the United States Government.  If this were the case I guaranty you that the american people would be demanding that more of our government’s _private variable be made public. But wait! There is an API to our government; well, sort of.  Enter Sunlight Labs !