Script Library: 1238 scripts
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 
tag index: t · type

92 scripts tagged as: [type  ·  how-to]

Monty Hall Challenge
oneliner-monty-hall.r
 documentation
v:1.0.0
694 bytes
13 Aug 2004
Simulates swapping doors after Monty shows a goat. Result is percentage wins after 100 runs. (MHC: a well-known and often debated probability puzzle involving three doors, two goats, and a car).
author: Sunanda (with tweaks from Romano T, Ryan C, Carl R, and Reichart)
Morse code
oneliner-morse-code.rv:1.0.0
660 bytes
13 Nov 2003
Encodes a sentence into morse code. This version is a bit suboptimal so that the html generator won't destroy it.
author: Johan Roennblom
Improved probe
oneliner-newprobe.rv:1.0.0
546 bytes
20 Jul 2003
Requires last beta versions. A more usable probe. Try: view newprobe layout [button probe ]
author: Romano Paolo Tenca
Fractional length
oneliner-nfrac.rv:1.0.0
610 bytes
27 Sep 2003
nfrac 33 => 0 ; nfrac 456 => 0 ; nfrac 0.2104 => 4 ; nfrac 1256.63 => 2 ; nfrac 1.0 => 0
author: collective contribution on www.codeur.org/forum/forum.php?theme=17
Paint drops
oneliner-paint-drops.r
 documentation
v:1.0.0
583 bytes
20 Jul 2003
A surface is filled with colored drops.
author: Vincent Ecuyer
Calculate Pi
oneliner-pi.rv:1.0.0
654 bytes
20 Jul 2003
Approximate PI with John Wallis formula. Precision limited to 15 digits due to REBOL. Just press ESC when fed up ;-) Formula from http:// www.chez.com/algor/math/pi.htm
author: Jean-Nicolas Merville
Prime factors
oneliner-prime-factors.r
 documentation
556 bytes
23 Jun 2008
[no purpose header found]
author: Sunanda
web page links
oneliner-print-links.rv:1.0.0
580 bytes
20 Jul 2003
Load a web page, parse it to extract and print all links found
author: Christophe Coussement
Print HTML source
oneliner-print-web-page.rv:1.0.0
489 bytes
27 Sep 2003
Prints to the console the HTML source for a web page.
author: RT
Quine -- a program that displays it's own source
oneliner-quine.rv:1.0.0
636 bytes
8 Mar 2009
Creates a self modifying window. (includes the REBOL Header.)
author: Ammon Johnson
Cellular automata
oneliner-rule-110-ca.rv:1.0.0
759 bytes
20 Jul 2003
Shows some steps in the evolution of a Turing complete cellular automaton from a single marked cell. Replace ..1.11. with some other expression, like ..11.. or .1..11 , and what do you have? Rule 90, and rule 30, respectively.
author: Errru
Save console history
oneliner-save-console-history.rv:1.0.0
737 bytes
20 Jul 2003
Takes the history of input into the console and prints it out, line by line, to a file. This way you can paste in functions and whole scripts, and save them for viewing and editing. Sorts it to display the oldest commands at the top.
author: Saw it on the ML a while ago
Save web page
oneliner-save-web-page-text.rv:1.0.0
651 bytes
20 Jul 2003
This line reads a web page, strips all its tags (leaving just the text) and writes it to a file called page.txt. Note: requires newer releases of REBOL.
author: Carl Sassenrath
Send email
oneliner-send-email.rv:1.0.0
621 bytes
20 Jul 2003
Simple GUI for email sending. Displays a small ok window when email is sent.
author: DocKimbel
Display server name
oneliner-server-id.rv:1.0.0
529 bytes
13 Aug 2004
Prints the name and version of a website's server.
author: Sunanda
Check if subset
oneliner-subset.rv:1.0.0
738 bytes
19 Mar 2004
Tells you if set1 is a subset of set2. Works for both series! and bitset! values.
author: gregg irwin
TCP port scanner
oneliner-tcp-port-scanner.r
 documentation
v:1.0.0
850 bytes
20 Jul 2003
This is a simple port scanner. Given a TCP address, it will tell you which of the first 100 ports are accessible. The address can be a host name or number. For example, use "localhost" to scan ports on your own machine. You can scan more ports by increasing the number (from 100), or you can scan ranges by using a FOR loop rather than REPEAT.
author: Anonymous
Day of week
oneliner-weekday.rv:1.0.0
563 bytes
20 Jul 2003
Returns the weekday of the date. Use 'Weekday? like: Weekday? 25/Dec/2002 ; == Wednesday
author: Andrew Martin
PDF label maker
pdf-labels.r
 documentation
v:0.0.2
3.4 KB
17 Mar 2004
Create labels with PDF-Maker
author: Gregg Irwin
Add post-effects with shaders
post-processor.rv:0.4.0
12.2 KB
3 May 2020
Example use of %gles-egl-h.r
author: Marco Antoniazzi
Progress Bar With Read-thru
progress-bar-with-read-thru.rv:0.1.0
4.4 KB
18 May 2006
Progress Bar With Read-thru was written to provide a simple progress bar script to the REBOL library. When using REBOL's internal read-thru function, only 5 lines are required to update a progress bar - see note 2. Read-thru is used to download a file to the disk cache - and to provide the data to move the progress bar. The method used to retrieve the downloaded [...]
author: R.v.d.Zee
RebGUI and RebDB Sample
rebdbgui.r
 documentation
v:0.9.0
17.6 KB
3 Jul 2007
A quick demonstration of RebGUI with RebDB
author: Brian Tiffin
RebGUI image Example
rebgui-image.r
 documentation
v:1.0.0
1.3 KB
4 Jun 2007
RebGUI tutorial; display an image, with tip and close action
author: Brian Tiffin
RebGUI span Example
rebgui-sizing.r
 documentation
v:1.0.0
1.9 KB
5 Jun 2007
RebGUI tutorial; display images, with widget span and window resizing
author: Brian Tiffin
RebGUI table Example
rebgui-table.r
 documentation
v:1.0.0
1.7 KB
4 Jun 2007
RebGUI tutorial; display a table
author: Brian Tiffin
51 / 9212[3] 4