This file contains hidden or 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: 10-Feb-2021 | |
| File: %clean-script.reb | |
| Version: 1.2.3 | |
| Type: module | |
| Name: rgchris.clean-script | |
| Exports: [clean-script] | |
| Author: "Christopher Ross-Gill" | |
| Purpose: { |
This file contains hidden or 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: "Presentation Style" | |
| Author: "Christopher Ross-Gill" | |
| Date: 20-Sep-2004 | |
| History: { | |
| Based on "Presentation Dialect" by Jeff Kreis | |
| 15-Jan-2001 | |
| https://www.cs.unm.edu/~whip/make-presentation.r | |
| https://www.cs.unm.edu/~whip/test-prez.r |
This file contains hidden or 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: "LZW (De)Compression Routine" | |
| File: %lzw.reb | |
| Author: "Christopher Ross-Gill" | |
| Date: 31-Jan-2021 | |
| Version: 0.1.0 | |
| Type: module | |
| Name: rgchris.lzw | |
| Exports: [lzw] | |
| Needs: [%bitwise.reb] ; https://gist.github.com/rgchris/aeaf8b7467906844d4275e8b9af09397 |
This file contains hidden or 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: "Bitwise Helpers" | |
| Date: 28-Jan-2021 | |
| Author: "Christopher Ross-Gill" | |
| Type: module | |
| Name: rgchris.bitwise | |
| Exports: [shift-binary signed32] | |
| Notes: { | |
| * General Purpose BINARY SHIFT function (not optimized) | |
| * Signed-32 helpers |
This file contains hidden or 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: "Parse Machine" | |
| Author: "Christopher Ross-Gill" | |
| Date: 24-Jan-2021 | |
| Home: https://github.com/rgchris/Scripts | |
| File: %parser.reb | |
| Version: 0.2.2 | |
| Purpose: { | |
| Provides a versatile wrapper around PARSE for handling diverse | |
| data formats. |
This file contains hidden or 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: "Ascii 85 Encoder/Decoder for Rebol 2" | |
| Date: 6-Jan-2021 | |
| Author: "Christopher Ross-Gill" | |
| Version: 1.0.0 | |
| ] | |
| pow-85: [52200625 614125 7225 85 1] | |
| ascii85: charset [#"!" - #"u"] | |
| whitespace: charset as-string #{00090A0C0D20} |
This file contains hidden or 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: "Form Decimal for Rebol 2" | |
| Date: 4-Jan-2021 | |
| Author: "Christopher Ross-Gill" | |
| Purpose: "Render a decimal! value sans scientific notation" | |
| Tests: [ | |
| "12345000000000000000000" | |
| "0.0000000000001" | |
| "0.1" | |
| "-0.1" |
This file contains hidden or 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: "Modified Clean-Path function" | |
| Date: 20-Dec-2020 | |
| Author: "Christopher Ross-Gill" | |
| ] | |
| clean-path: func [ | |
| {Returns new directory path with `.` and `..` processed.} | |
| path [file! url! text!] | |
| /only "Do not prepend current directory" |
This file contains hidden or 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 hidden or 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 |