代码搜索:Writing

找到约 5,778 项符合「Writing」的源代码

代码结果 5,778
www.eeworm.com/read/422309/10643795

html qt4l_writing.html

Quicktime for Linux Writing a file The following commands are good for writing to a file. Immediately after opening the file, set up some tracks to write with these comm
www.eeworm.com/read/275831/10793844

rb 07 - writing to a temporary file.rb

require 'tempfile' out = Tempfile.new("tempfile") out.path # => "/tmp/tempfile23786.0" #--- out "Some te
www.eeworm.com/read/275831/10793908

rb 03 - writing a soap client.rb

require 'soap/rpc/driver' driver = SOAP::RPC::Driver.new( 'http://webservices.codingtheweb.com/bin/qotd', 'urn:xmethods-qotd') #--- driver.add_method('getQuote') puts driver.g
www.eeworm.com/read/275831/10793911

rb 04 - writing a soap server.rb

require 'soap/rpc/standaloneServer' class MyServer < SOAP::RPC::StandaloneServer def initialize(*args) super add_method(self, 'sayhelloto', 'username') end end #--- class MyServer def s
www.eeworm.com/read/275831/10794185

rb 06 - writing unit tests.rb

# app/person.rb class Person attr_accessor :first_name, :last_name, :age def initialize(first_name, last_name, age) raise ArgumentError, "Invalid age: #{age}" unless age > 0 @first_name,
www.eeworm.com/read/275831/10794217

rb 03 - writing an inherited class.rb

class String def scramble (split //).sort_by { rand }.join end end "I once was a normal string.".scramble # => "i arg cn lnws.Ioateosma n r" #--- class UnpredictableString < String de
www.eeworm.com/read/275831/10794380

rb 15 - writing a cgi script.rb

#!/usr/bin/ruby # ps.cgi processes = %x{ps aux}.collect do |proc| '' + proc.split(/\s+/, 11).join('') + '' end puts 'Content-Type: text/html' # Output other HTTP headers
www.eeworm.com/read/275831/10794384

rb 13 - writing an internet server.rb

#!/usr/bin/ruby -w # chat.rb require 'gserver' class ChatServer < GServer def initialize(port=20606, host=GServer::DEFAULT_HOST) @clients = [] super(port, host, Float::MAX, $stderr, true)
www.eeworm.com/read/417019/11007083

js 4.05 - asymmetrical reading and writing.js

var authorClone = clone(Author); alert(authorClone.name); // Linked to the primative Person.name, which is the // string 'default name'. authorClone.name = 'new name'; // A n