Skip to content

Instantly share code, notes, and snippets.

Christopher Ross-Gill rgchris

Block or report user

Report or block rgchris

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rgchris /
Last active Sep 14, 2019
Red SVG loader/converter
Red [
Title: "SVG Tools"
Date: 13-Sep-2019
Author: "Christopher Ross-Gill"
Version: 0.2.2
History: [
0.2.2 13-Sep-2019 "Some functions for manipulating paths; refactoring"
0.2.1 26-Aug-2019 "Set Stroke/Fill off by default; handle numbers with units; open paths"
0.2.0 25-Aug-2019 "Text support in TO-DRAW"
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"
rgchris / make-scorecard.r
Last active Jul 1, 2019
Softball Scorecard Generator
View make-scorecard.r
#!/usr/local/bin/rebol -qs
Rebol [
Title: "Generate a Softball Scorecard"
Date: 30-Jun-2019
Author: "Christopher Ross-Gill"
Target: %Softball%20Scorecard.pdf
Notes: {
This was needed for some back-pocket scoring for an
rgchris / rebol.svg
Last active Jul 3, 2019
Rebol (and family) logos as a small set of SVG shapes.
View rebol.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View rebolsays.html
<!DOCTYPE html>
<title>Rebol says Hello</title>
<link rel="shortcut icon" href="">
<link href="" rel="stylesheet">
<!-- %load-r3.js looks for all "text/rebol" <script> tags and runs them -->
<script src=""></script>
rgchris /
Last active Apr 26, 2019
Find whole words in a string

This was my response to a question Explaining Parse Rules on RebolForum wrt. matching whole words in a string.

"The input string can contain any number of delimiters, followed by the word we are searching for, and then any delimiter or else the end of the string. If we find the word, return ??? what exactly? Or, if we don't find the word, then there can be any characters or delimiters to the end. (And then what does the "end skip" do?)

I should start by saying that I don't normally use return in this way: I don't much for return at all, rather let all the branches play out to their conclusion. I used it here for expediency.

The problem here is defined as 'whole words'--we need to discern what a whole word is. In Regex, you might write /\bWordToMatch\b/ with that handy little \b shorthand which is a zero-width match between a stream of \w (word) chara

rgchris / minimal-epub.reb
Last active Feb 6, 2019
Build a minimal EPUB in Ren-C
View minimal-epub.reb
Rebol [
Title: "Package a Minimal eBook"
Date: 5-Feb-2019
Author: "Christopher Ross-Gill"
Notes: [
{Source of Minimal eBook}
rgchris / deep-list.reb
Last active Feb 5, 2019
Return a list of a folder's content (recursive)
View deep-list.reb
Rebol [
Title: "Return a listing of a folder's content"
Date: 4-Feb-2019
Author: "Christopher Ross-Gill"
deep-list: func [
source [file!]
/hidden /folders
rgchris /
Last active Jan 26, 2019
Some SVG functions in Red
Red [
Title: "Parse SVG"
Date: 23-Dec-2018
Author: "Christopher Ross-Gill"
; do
rgchris / events.r
Created Jan 26, 2019
Experiments with Rebol/View 2.7.8
View events.r
#!/usr/local/bin/rebview -iqvs
Rebol [
Title: "Events Test"
Date: 12-Dec-2018
Author: "Christopher Ross-Gill"
File: %events.r
Version: 0.1.0
Comments: {
- Linkify Face (
You can’t perform that action at this time.