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
const Bd = function (name, attrs, ...kids) { | |
const spaces = { | |
xhtml: 'http://www.w3.org/1999/xhtml', | |
svg: 'http://www.w3.org/2000/svg' | |
} | |
const fullname = name.split(':') | |
name = fullname.pop() |
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
window.istype = function(value, explicit = false) { | |
let type = Object.prototype.toString.apply(value).match( | |
/\[object ([A-Za-z_0-9]+)\]/ | |
)[1] | |
switch (type) { | |
case "Boolean": | |
case "String": | |
case "BigInt": | |
case "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: "Data URI Scheme" | |
Date: 13-Feb-2021 | |
Author: "Christopher Ross-Gill" | |
] | |
use [chars type] [ | |
chars: complement charset "^-^/^M ,/;" | |
sys/make-scheme [ |
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: 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 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: "TextMate Support" | |
Author: "Christopher Ross-Gill" | |
Date: 8-Feb-2021 | |
Type: module | |
Name: rgchris.textmate | |
Exports: [tm textmate neaten envelop form-error] | |
] | |
tm: make object! [ |
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: "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 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 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 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. |