Skip to content

Instantly share code, notes, and snippets.

View rgchris's full-sized avatar

Christopher Ross-Gill rgchris

View GitHub Profile
@rgchris
rgchris / embed-image.red
Last active September 13, 2017 02:24
Embed Image in a Red Script
Red [
Title: "Embed Image"
Date: 12-Sep-2017
Author: "Christopher Ross-Gill"
]
help-image: load/as 64#{
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAYFBMVEVHcExzqnN6
xHptvm1fwl9FoUVJk0kgLiCKtIophSkmYyYIVggRMREBRAECFQIxPTEPag9wkXC9
1L3Y7tjf8t+jx6PM4cxJdknn9efu+O5caVxETkT2/PYZHBlTYFP+//5Z4eYoAAAA
@rgchris
rgchris / eve.red
Created September 21, 2017 06:15
Thoughts on Addressing UI Elements in VID
Red [
Notes: {
Is a reimagining of the Eve-style Clock demo without
using words to access UI elements. Adaptation of:
http://www.red-lang.org/2016/07/eve-style-clock-demo-in-red-livecoded.html
}
]
clock-demo: {
base 200x200 transparent rate 1 now draw [
@rgchris
rgchris / parrot-field.r
Created September 24, 2017 21:57
Parrot Field
#!/usr/local/bin/rebview -iqvs
Rebol [
Title: "Parrot Field"
Date: 2-Jan-2017
Author: "Christopher Ross-Gill"
Link: http://rebolforum.com/index.cgi?f=printtopic&permalink=OneArb2-Jan-2017/11:14:53-8:00&archiveflag=archive
Notes: http://www.rebol.com/docs/view-face-events.html
]
@rgchris
rgchris / arran.red
Last active September 25, 2017 04:43
#!/usr/local/bin/red
Red [
Title: "Isle of Arran"
Date: 16-April-2001
Version: 1.1.0
File: %arran.red
Home: http://www.ross-gill.com/
Author: "Christopher Ross-Gill"
Owner: "Arran Multimedia Studio"
@rgchris
rgchris / context-error.reb
Last active September 27, 2017 18:40
Module Context Error
#!/usr/local/bin/ren-c
Rebol [Type: module]
tokenizer: make object! [
use: func ['state [word!]][probe to tag! state]
]
tokenizer/use foo
@rgchris
rgchris / state-names.reb
Created October 2, 2017 19:18
A list of state names for the Markup module (used as a bug workaround).
<states>
data: rcdata: rawtext: script-data: script-data: plaintext:
tag-open: end-tag-open: tag-name: rcdata-less-than-sign: rcdata-end-tag-name: rawtext-less-than-sign:
rawtext-end-tag-open: rawtext-end-tag-name: script-data-less-than-sign: script-data-end-tag-open: script-data-end-tag-name: script-data-escape-start:
script-data-escape-start-dash: script-data-escaped: script-data-double-escaped: script-data-escaped: script-data-escaped-dash: script-data-escaped-dash-dash:
script-data-escaped-less-than-sign: script-data-escaped-end-tag-open: script-data-escaped-end-tag-name: script-data-double-escape-start: script-data-double-escaped: script-data-double-escaped-dash:
script-data-double-escaped-dash-dash: script-data-double-escaped-less-than-sign: script-data-double-escape-end: before-attribute-name: attribute-name: after-attribute-name:
before-attribute-value: attribute-value-double-quoted: attribute-value-single-quoted: attribute-value-unquoted: character-reference-in-attribute-value: after-attribute-value-
@rgchris
rgchris / httpd-example.reb
Last active February 7, 2018 15:29
HTTPd Example for Ren-C
#!/usr/local/bin/ren-c
Rebol [
Title: "HTTPd Example"
Date: 7-Feb-2018
Author: "Christopher Ross-Gill"
File: %httpd-example.reb
Rights: http://opensource.org/licenses/Apache-2.0
Needs: [<httpd>]
]
@rgchris
rgchris / simf.reb
Last active February 11, 2018 19:38
Simple IMF Parser
Rebol [
Title: "Simple IMF Parser"
Author: "Christopher Ross-Gill"
Date: 11-Feb-2018
Home: https://github.com/rgchris/Scripts
File: %simf.reb
Rights: http://opensource.org/licenses/Apache-2.0
Type: module
Name: rgchris.simf
Exports: [load-message]
@rgchris
rgchris / parser.reb
Last active February 13, 2018 16:14
Incremental Parser in Ren-C
Rebol [
Title: "Parser"
Author: "Christopher Ross-Gill"
Date: 13-Feb-2018
Home: https://github.com/rgchris/Scripts
File: %parser.reb
Version: 0.1.0
Purpose: {Incremental Parser}
Rights: http://opensource.org/licenses/Apache-2.0
Type: module
@rgchris
rgchris / parser.r
Last active February 19, 2018 21:43
Incremental Parser in Ren/C, Red and Rebol 2
#!/usr/local/bin/rebol -qs parser.test.reb
Rebol [
Title: "Parser"
Author: "Christopher Ross-Gill"
Date: 13-Feb-2018
Home: https://github.com/rgchris/Scripts
File: %parser.r
Version: 0.1.0
Purpose: {Incremental Parser}