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: "Prepare a new Rebol extension project" | |
needs: 3.7.0 ;; because it is using ZIP codec | |
] | |
ext-name1: ask "Name of the new extension (uppercase without `Rebol-` part): " | |
ext-name2: lowercase copy ext-name1 | |
ext-root: join %Rebol- ext-name1 | |
;; Check if there is already a project with this name. |
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 [ | |
name: pandore | |
title: "Codec: PAN" | |
version: 0.0.1 | |
purpose: "Decode data from Pandore library files" | |
note: https://clouard.users.greyc.fr/Pandore/ | |
] | |
register-codec [ | |
name: 'pandore |
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 [ | |
Name: semantic-version | |
Type: module | |
Purpose: "Sorts block of semantic versioning strings with applied Maven exceptions" | |
Exports: [sort-versions compare-versions] | |
Usage: [ | |
sort-versions ["2-alpha" "2.0" "1" "2-sp" "1.2" "2-beta" "2-rc1" "2-rc2"] | |
;== ["1" "1.2" "2-alpha" "2-beta" "2-rc1" "2-rc2" "2.0" "2-sp"] | |
] | |
Version: 1.0.0 |
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 [ | |
Purpose: "Cross-platform DMX port usage example" | |
Needs: 3.11.0 ;= https://github.com/Oldes/Rebol3/releases/tag/3.11.0 | |
] | |
;------------- DMX ------------------------ | |
dmx-ctx: context [ | |
ser: none | |
bin: make binary! 513 insert/dup bin 0 513 | |
;- Channel 10A |
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: "Graphing 2D Equations" | |
file: %graph2d.r3 | |
purpose: { | |
Demonstrate use of Rebol/MathPresso extension. | |
Using precompiled math expression. | |
https://github.com/Siskin-framework/Rebol-MathPresso | |
} | |
reference: https://p5js.org/examples/math-graphing-2d-equations.html | |
license: MIT |
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: "Reproducing images with geometric primitives." | |
type: module | |
name: primitive | |
date: 24-Mar-2023 | |
author: "Oldes" | |
version: 0.2.0 | |
license: MIT | |
purpose: {This is a try to have something like this https://github.com/fogleman/primitive} | |
exports: [primitivize] |
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: "Reproducing images with geometric primitives." | |
type: module | |
name: primitive | |
date: 24-Mar-2023 | |
author: "Oldes" | |
version: 0.2.0 | |
license: MIT | |
purpose: {This is a try to have something like this https://github.com/fogleman/primitive} | |
exports: [primitivize] |
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 extension source code template generator" | |
] | |
system/options/quiet: false | |
system/options/log/siskin: 3 | |
;- File templates -------------------------------------------------------------- | |
rebol-extension.r3: {REBOL [ | |
title: "Rebol/#NAME# module builder" | |
type: module |
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: "Random names" | |
type: module | |
name: random-names | |
version: 0.0.1 | |
author: @oldes | |
exports: [random-names] | |
] | |
;; https://britishsurnames.co.uk/random |
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 [] | |
my-ip?: function[ | |
"Resolves external IP address" | |
][ | |
quiet: system/options/quiet | |
system/options/quiet: true | |
host-name: read dns:// | |
local-ip: read join dns:// host-name | |
external-ip: read http://ifconfig.me/ip | |
system/options/quiet: quiet |
NewerOlder