This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebol [ | |
Title: "Storage Scheme" | |
Date: 18-Dec-2020 | |
Author: "Christopher Ross-Gill" | |
] | |
make object! [ | |
storage-enabled?: js-native [] { | |
return reb.Logic( | |
typeof Storage !== 'undefined' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebol [ | |
Title: "Single Pixel PNG" | |
Date: 4-Dec-2020 | |
Author: "Christopher Ross-Gill" | |
] | |
chunkify: func [ | |
header [word!] | |
data [binary!] | |
/compress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Statement ::= (Newline | Whitespace | '(' | ')' | ',' | '.' | Value | ';')* | |
Value ::= Comment-Line | Comment | String-Single | String-Double | Literal | Variable | Word | Number | Misc | |
Comment-Line ::= ('--' | '#') [^#xA#xD]* | |
Comment ::= '/*' ( [^*] | '*'+ [^*/] )* '*'* '*/' | |
String-Single ::= "'" ([^'\]+ | '\\' | "\'" | "''")* "'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebol [ | |
Title: "Octal Notation" | |
Date: 16-Jun-2020 | |
Author: "Christopher Ross-Gill" | |
Notes: https://www.jstor.org/stable/983079?seq=35#metadata_info_tab_contents | |
] | |
octal-tables: collect [ | |
foreach suffix [ | |
"" "ty" "der" "tyder" "sen" "tysen" "dersen" "tydersen" "kaly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rebol [ | |
Title: "Rebol Script Cleaner (Pretty Printer)" | |
Date: 5-Jan-2020 | |
File: %clean-script.r | |
Author: "Christopher Ross-Gill" | |
Purpose: { | |
Cleans (pretty prints) Rebol scripts by parsing the Rebol code | |
and supplying standard indentation and spacing. | |
} | |
History: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [ | |
Title: "SVG Tools" | |
Date: 27-Jan-2020 | |
Author: "Christopher Ross-Gill" | |
Rights: http://opensource.org/licenses/Apache-2.0 | |
Version: 0.3.2 | |
History: [ | |
0.3.2 27-Jan-2020 "Better handling of text whitespace; bold/italic" | |
0.3.1 24-Jan-2020 "PATH model rewrite; VIEW wrapper to view an SVG" | |
0.3.0 23-Jan-2020 "Reorganise PATH handling; render whole/partial object; further refactoring" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [ | |
Title: "Walk through a VID tree (non-recursive)" | |
Author: "Christopher Ross-Gill" | |
Date: 18-Aug-2019 | |
Comment: "Goes backwards - most prominent faces first" | |
] | |
Rebol [ | |
Comment: "Works in Rebol 2 as well" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/rebol -qs | |
Rebol [ | |
Title: "Generate a Softball Scorecard" | |
Date: 30-Jun-2019 | |
Author: "Christopher Ross-Gill" | |
Target: %Softball%20Scorecard.pdf | |
Home: https://gist.github.com/rgchris/77e4c6482e4cdf0465603aaf825f7d66 | |
Notes: { | |
This was needed for some back-pocket scoring for an |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Rebol says Hello</title> | |
<link rel="shortcut icon" href="http://rebol.info/assets/rebolbot.png"> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"> | |
<!-- %load-r3.js looks for all "text/rebol" <script> tags and runs them --> | |
<script src="https://metaeducation.s3.amazonaws.com/travis-builds/load-r3.js"></script> | |
</head> |