Skip to main content

Diigo Home

ruby code - The Diigo Meta page

www.bigbold.com/ruby - Cached

Page Comments

  • unnisworld
    Unnikrishnan on 2006-07-15
    Ruby code snippets
  • robotoil
    robotoil on 2006-09-02
    require 'net/http'

    Net::HTTP.start("static.flickr.com") { |http|
    resp = http.get("/92/218926700_ecedc5fef7_o.jpg")
    open("fun.jpg", "wb") { |file|
    file.write(resp.body)
    }
    }
    puts "Yay!!"

Would you like to comment?

Join Diigo for a free account, or sign in if you are already a member.