71 scripts tagged as: [type · one-liner]
Upload a file with FTP | ||
oneliner-ftp-upload-file.r | v:1.0.0 637 bytes 20 Jul 2003 | Uploads a file using FTP (file transfer protocol). Username and password are
provided in the line (so be warned). Any file can be uploaded, text, images, webpages, etc. author: RT |
Print console history | ||
oneliner-hist.r | v:1.0.0 502 bytes 20 Jul 2003 | Print the console history. author: Romano Paolo Tenca |
Image to pgm converter | ||
oneliner-image-to-pgm.r documentation | v:1.0.0 1.6 KB 29 Jan 2013 | Creates a binary Portable Graymap (PGM - P5) from an image! source author: Vincent Ecuyer |
Image to ppm converter | ||
oneliner-image-to-ppm.r documentation | v:1.0.0 1.0 KB 29 Jan 2013 | Creates a binary Portable Pixel Map (PPM - P6) from an image! source author: Vincent Ecuyer |
Image viewer | ||
oneliner-image-viewer.r documentation | v:1.0.0 622 bytes 20 Jul 2003 | Displays a picture in a window. Click on it to select another one. author: Vincent Ecuyer |
Test if leap year | ||
oneliner-leapyear.r | v:1.0.0 681 bytes 20 Jul 2003 | 'Leapyear? returns 'true for date values that are leapyears. For example:
>> leapyear? 1/1/2001
== none
>> leapyear? 1/1/2000
== true author: Andrew Martin |
Write a log file | ||
oneliner-log.r | v:1.0.0 741 bytes 20 Jul 2003 | Logs Rebol values to a file named %Log.txt. I use 'Log to help debug CGI scripts.
Use 'Log like:
Log/clear now ; Start a new log file.
; What's the CGI query string contents?
Log Rebol/options/cgi/query-string author: Andrew Martin |
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.r | v: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.r | v: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.r | v: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.r | v: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 |
Posterize | ||
oneliner-posterize.r documentation | v:1.0.0 1.8 KB 31 Jan 2013 | A short function for 'posterization' effects on images author: Vincent Ecuyer |
Prime factors | ||
oneliner-prime-factors.r documentation | 556 bytes 23 Jun 2008 | [no purpose header found] author: Sunanda |
Prime numbers | ||
oneliner-prime-numbers.r | v:0.0.1 452 bytes 23 Dec 2012 | Give some prime numbers author: Marco Antoniazzi translated from Wouter van Oortmerssen |
web page links | ||
oneliner-print-links.r | v: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.r | v: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.r | v: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.r | v: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.r | v: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.r | v: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.r | v: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.r | v: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.r | v: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 |
26 / 71 | 1 | [2] | 3 |