代码搜索:Ruby
找到约 1,747 项符合「Ruby」的源代码
代码结果 1,747
www.eeworm.com/read/179897/5301779
java gamelogger.java
package com.aztsoft.games.util;
/**
* A special type of Logger. completely useless.
* Logging should be an aspect. Or I should convert to ruby.
*/
public class GameLogger {
private stat
www.eeworm.com/read/274610/4185130
rb getsitearchdir.rb
require "mkmf"
drive = File::PATH_SEPARATOR == ";" ? /\A\w:/ : /\A/
print "arch = "
print CONFIG["arch"]
print "\n"
print "sitearch = "
print CONFIG["sitearch"]
print "\n"
print "ruby_version = "
prin
www.eeworm.com/read/414813/2142543
rb test_helper.rb
#!/usr/bin/env ruby
require 'geos'
require "rexml/document"
XmlTest = Struct.new(:case_id, :test_id,
:operation, :expected,
:geom1, :geom2,
www.eeworm.com/read/369339/2800712
murders
Cock Robin:{the }sparrow
sleep|Duncan:Macbeth
{the }cat:curiosity|care
{John {F{.} }}Kennedy|JFK:{Lee Harvey }Oswald|{the }FBI|{the }CIA
{Lee Harvey }Oswald:{Jack }Ruby|{the }FBI|{the }CIA
{Martin Lut
www.eeworm.com/read/363563/2914384
rb sajax.rb
#!/usr/bin/env ruby
#---
# Excerpted from "Pragmatic Ajax"
# We make no guarantees that this code is fit for any purpose.
# Visit http://www.pragmaticprogrammer.com/titles/ajax for more book informat
www.eeworm.com/read/159050/5588562
rb shp2img.rb
#!/usr/bin/env ruby
require "mapscript"
include Mapscript
filename = ARGV[0]
shapefile = ShapefileObj.new(filename, -1)
shapepath = File.dirname(filename)
shapename = File.basename(filename, "...
www.eeworm.com/read/387369/8691012
readme
pymmseg-cpp
by pluskid
== DESCRIPTION:
pymmseg-cpp is a Python interface to rmmseg-cpp. rmmseg-cpp is a high
performance Chinese word segmentation utility for Ruby. However, the
core part is wri
www.eeworm.com/read/275831/10794175
00 - introduction
#!/usr/bin/env ruby
# divide.rb
numerator = rand(100)
denominator = rand(10)
$stderr.puts "Dividing #{numerator} by #{denominator}" if $DEBUG
puts numerator / denominator
#---
$ ./divide.rb --debug
Di
www.eeworm.com/read/275831/10794382
rb 18 - running servlets with webrick.rb
#!/usr/bin/ruby
# simple_servlet_server.rb
require 'webrick'
include WEBrick
s = HTTPServer.new(:Port => 8000)
# Add a mime type for *.rhtml files
HTTPUtils::DefaultMimeTypes.store('rhtm
www.eeworm.com/read/449031/7519889
readme
pymmseg-cpp
by pluskid
== DESCRIPTION:
pymmseg-cpp is a Python interface to rmmseg-cpp. rmmseg-cpp is a high
performance Chinese word segmentation utility for Ruby. However, the
core part is wri