require 'net/ftp' ftp = Net::FTP.new('ftp.ruby-lang.org') ftp.passive = true ftp.login ftp…
require 'socket' server = TCPServer.new(1234) while connection = server.accept while line …
#!/usr/bin/env ruby # coding: utf-8 # vim: set sw=2 sts=2 et fenc=utf-8 : =begin An exampl…
require 'yaml' h = {} h[:name] = "Robert" h[:nickname] = "Bob" h[:age] = 43 h[:email_addre…
@score=[] @balance=[] sum=0 total_credit=0 puts "input your the number of your courses:" c…
begin require 'rubygems' rescue LoadError end require 'wx' include Wx $op_x = "" $op_y = "…
#!/usr/bin/ruby #coding=utf-8 require 'open-uri' url= "http ://raw.github usercontent.com/…
require 'feed_tools' slashdot_feed = FeedTools::Feed.open('http://www.oschina.net/code/rss…
require 'socket' server = TCPServer.new(1234) loop do Thread.start(server.accept) do |conn…
require 'xmlrpc/client' server = XMLRPC::Client.new2("http://xmlrpc-c.sourceforge.net/api/…
require "xmlrpc/client" client = XMLRPC::Client.new2('http://www.ruby-lang.org/~nahi/xmlrp…
#gem install net-ssh #gem install net-sftp require 'rubygems' require 'net/ssh' require 'n…
Ruby Using WIN32OLE with PowerPoint