ruby/sample
Kenichi Kamiya 9d20d2b0f5 Clean sample code biorhythm (#2375)
* Standardize to load date libary code

> git grep 'require .date.' | wc -l
179
> git grep 'require .date\.rb' | wc -l
1

* Simplify
2019-08-17 15:03:00 +09:00
..
drb Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
logger
openssl import Ruby/OpenSSL 2.0.0.beta.1 2016-08-29 05:47:09 +00:00
optparse opttest.rb: adust styles 2013-07-21 17:27:40 +00:00
pty pty/shl.rb: update [ci skip] 2017-02-05 01:26:27 +00:00
rdoc/markup
ripper erb.rb: deprecate safe_level of ERB.new 2018-02-22 13:28:25 +00:00
rss
testunit
trick2013 For this may be a syntax error (instead of LocalJumpError) in Ruby 2.7 2019-02-04 06:28:57 +00:00
trick2015 Fixed typos. 2018-01-12 09:07:47 +00:00
trick2018 Fix typo in trick2018/README [ci skip] 2018-12-03 10:35:13 +00:00
webrick
README
benchmark.rb * lib/benchmark.rb: split executable code into sample directory. 2014-07-23 19:45:09 +00:00
biorhythm.rb Clean sample code biorhythm (#2375) 2019-08-17 15:03:00 +09:00
cal.rb * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
cbreak.rb Fix NoMethodError [ci skip] 2017-05-03 01:44:52 +00:00
cgi-session-pstore.rb sample: use IO::NULL 2014-08-10 02:41:03 +00:00
clnt.rb
coverage.rb * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
delegate.rb * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
dir.rb Use `\A` and `\z` instead of `^` and `$` [ci skip] 2017-05-02 11:26:28 +00:00
dualstack-fetch.rb * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
dualstack-httpd.rb Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
eval.rb
export.rb * basictest/test.rb: Adjust spaces in class declarations 2016-10-07 05:18:57 +00:00
exyacc.rb * sample/exyacc.rb: Fix some typos. 2015-06-12 09:20:44 +00:00
fact.rb Simplify a sample code (#2374) 2019-08-17 14:56:57 +09:00
fib.awk * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
fib.pl * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
fib.py sample/fib.py: Fix syntax error in Python 3 [ci skip] 2018-12-18 23:36:47 +00:00
fib.rb
fib.scm * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
freq.rb
from.rb * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
fullpath.rb
iseq_loader.rb sample/iseq_loader: use File.open instead of Kernel#open 2018-01-12 09:31:22 +00:00
less.rb
list.rb * sample/exyacc.rb: Fix some typos. 2015-06-12 09:20:44 +00:00
list2.rb
list3.rb
mine.rb
mkproto.rb * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
mpart.rb
net-imap.rb * lib/net/imap.rb: split executable code into sample directory. 2014-08-21 03:40:42 +00:00
observ.rb Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
occur.pl * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
occur.rb
occur2.rb
open3.rb * lib/cgi/session/pstore.rb: separated sample code. 2014-08-10 01:34:50 +00:00
philos.rb Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
pi.rb
pstore.rb * lib/pstore.rb: split executable code into sample directory. 2014-07-23 19:31:18 +00:00
rcs.awk * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
rcs.dat
rcs.rb
rinda-ring.rb * lib/rinda/ring.rb: split executable code into sample directory. 2014-08-21 04:23:56 +00:00
sieve.rb
simple-bench.rb * properties. 2014-11-02 17:36:57 +00:00
svr.rb
tempfile.rb * lib/tempfile.rb: split executable code into sample directory. 2014-07-23 19:44:23 +00:00
test.rb fix typos [ci skip] 2016-10-27 00:45:46 +00:00
time.rb
timeout.rb sample/timeout.rb: Remove unnecessary increment [ci skip] 2018-03-22 13:01:17 +00:00
trojan.rb * sample/*: whitespace patch by Sergio Campama [Fixes GH-364] 2013-07-20 13:41:02 +00:00
tsvr.rb
uumerge.rb
weakref.rb * lib/weakref.rb: split executable code into sample directory. 2014-07-26 17:12:11 +00:00

README

README		this file
biorhythm.rb	biorhythm calculator
cal.rb		cal(1) clone
cbreak.rb	no echo done by ioctl
clnt.rb		socket client
coverage.rb	simple test code coverage tool
dir.rb		directory access
dualstack-fetch.rb	IPv6 demo
dualstack-httpd.rb	IPv6 demo
eval.rb		simple evaluator
export.rb	method access example
exyacc.rb	extrace BNF from yacc file
fact.rb		factorial calculator
fib.awk		Fibonacci number (AWK)
fib.pl		Fibonacci number (Perl)
fib.py		Fibonacci number (Python)
fib.rb		Fibonacci number (Ruby)
fib.scm		Fibonacci number (Scheme)
freq.rb		count word occurrence
from.rb		scan mail spool
fullpath.rb	convert ls -lR to fullpath format
less.rb		front end for less
list.rb		stupid object sample
list2.rb	stupid object sample
list3.rb	stupid object sample
mine.rb		simple mine sweeper
mkproto.rb	extract prototype from C
mpart.rb	split file int multi part
observ.rb	observer design pattern sample
occur.pl	count word occurrence (Perl)
occur.rb	count word occurrence (Ruby)
occur2.rb	count word occurrence - another style
philos.rb	famous dining philosophers
pi.rb		calculate PI
rcs.awk		random character stereogram (AWK)
rcs.rb		random character stereogram (Ruby)
rcs.dat		data for random character stereogram
sieve.rb	sieve of Eratosthenes
svr.rb		socket server
test.rb		test suite used by `make test'
time.rb		/usr/bin/time clone
timeout.rb	timeout test
trojan.rb	simple tool to find file that may be trojan horse.
tsvr.rb		socket server using thread
uumerge.rb	merge files and uudecode them