ruby/sample
Kevin Newton 78d7b470ec [ruby/prism] Add some code samples
https://github.com/ruby/prism/commit/f5c883af56
2024-06-06 14:15:55 +00:00
..
drb Fix typo in README (#5925) 2022-05-20 14:45:46 -07:00
logger
openssl [ruby/openssl] sample: update obsolete API use 2021-03-16 19:37:06 +09:00
optparse
pty
rdoc/markup
ripper
trick2013 Use https instead of http 2020-07-28 19:51:54 +09:00
trick2015 Remove obsolete Fixnum and Bignum 2021-12-28 18:35:03 +09:00
trick2018 Sync TRICK 2018 (02-mame) 2022-11-05 23:18:32 +09:00
trick2022 sample/trick2022/03-mame/entry.rb: remove trailing spaces 2022-12-24 03:19:45 +09:00
win32ole [ruby/win32ole] [DOC] Move sample to toplevel 2024-01-28 15:25:36 +00:00
README Drop duplicated sample code (#2389) [ci skip] 2019-08-19 18:43:23 +09:00
all-ruby-quine.rb Add all-ruby-quine as a sample code 2023-02-27 11:20:42 +09:00
benchmark.rb
biorhythm.rb
cal.rb
cbreak.rb
cgi-session-pstore.rb
clnt.rb
coverage.rb Use class methods of `File` over `Kernel.open` and `IO.read` 2022-12-01 02:28:49 +09:00
delegate.rb
dir.rb Refactor dir.rb sample (#6977) [ci skip] 2023-02-15 12:41:53 +09:00
dualstack-fetch.rb
dualstack-httpd.rb
eval.rb
export.rb
exyacc.rb Clean up lambda output from exyacc.rb 2021-08-25 18:23:56 -07:00
fact.rb
fib.awk
fib.pl
fib.py
fib.rb
fib.scm
find_calls.rb [ruby/prism] Add some code samples 2024-06-06 14:15:55 +00:00
find_comments.rb [ruby/prism] Add some code samples 2024-06-06 14:15:55 +00:00
from.rb Use class methods of `File` over `Kernel.open` and `IO.read` 2022-12-01 02:28:49 +09:00
fullpath.rb
iseq_loader.rb
less.rb
list.rb Fix `warning: instance variable @head not initialized` and remove unused instance variable 2020-12-19 15:24:09 +09:00
list2.rb
list3.rb Update a sample code (#2387) 2019-08-19 18:00:29 +09:00
locate_nodes.rb [ruby/prism] Add some code samples 2024-06-06 14:15:55 +00:00
mine.rb Use io/console to avoid stty error [ci skip] 2022-12-05 19:23:16 +09:00
mkproto.rb
mpart.rb Use class methods of `File` over `Kernel.open` and `IO.read` 2022-12-01 02:28:49 +09:00
observ.rb Remove unused variable to suppress warning (#2388) [ci skip] 2019-08-19 18:16:45 +09:00
occur.pl
occur.rb Drop duplicated sample code (#2389) [ci skip] 2019-08-19 18:43:23 +09:00
open3.rb
philos.rb
pi.rb
pstore.rb
rcs.awk
rcs.dat
rcs.rb
rinda-ring.rb
sieve.rb
simple-bench.rb
svr.rb
tempfile.rb
test.rb Remove unneeded exec bits from some files 2019-11-09 21:36:30 +09:00
time.rb
timeout.rb
trojan.rb
tsvr.rb
uumerge.rb Use class methods of `File` over `Kernel.open` and `IO.read` 2022-12-01 02:28:49 +09:00
visit_nodes.rb [ruby/prism] Add some code samples 2024-06-06 14:15:55 +00:00
weakref.rb

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)
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)
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