require 'socket' s = UDPSocket.new s.send("hello", 0, 'localhost', 1234)
old = File.open(ARGV[0]).collect new = File.open(ARGV[1],"a+") for i in 0..old.length-1 ne…
require 'win32ole' web_browser = WIN32OLE.new('InternetExplorer.Application') web_browser.…
ObjectSpace.each_object(Class).to_a ObjectSpace.each_object(Class).to_a ObjectSpace.each_o…
asd
#区分拼音和英文的代码 #拼音正则1 R = /(b|p|m|f|d|t|n|l|g|k|h|j|q|x|zh|ch|sh|r|z|c|s|y|w)(a|o|e|i|u|ao|iu…
require 'tk' top = TkRoot.new {title "Label and Entry Widget"} lb1=TkLabel.new(top){ text …
unix_socket_directory = '/var/pgsql_socket'
g = GmailSender.new('xxxxx@gmail.com', 'password') #next unless File.exist? fn #g.attach(f…
class CustomFunctionsManager attr_accessor :functions def initialize(dataFilePath) @dateF…
#!/usr/bin/env ruby # -*- coding: utf-8 -*- # require 'rubygems' #gem install qqwry requir…
require 'net/http' # The library we need host = 'www.example.com' # The web server path = …
Ruby 使用 POST 方法提交数据: set_form_data