Skip to content

Instantly share code, notes, and snippets.

View rgchris's full-sized avatar

Christopher Ross-Gill rgchris

View GitHub Profile
@rgchris
rgchris / rebol-syntax-for-ace.js
Created February 2, 2013 20:34
Rebol Syntax for ACE editor.
define(
function(require, exports, module) {
"use strict";
var Lookup = function(terms) {
this.terms = terms;
this.lookup = function (term){
return this.terms.indexOf(term.toLowerCase()) > -1;
}
}
@rgchris
rgchris / rebol.ebnf
Last active December 12, 2015 06:08
EBNF Notation describing the REBOL (and family) Message Format
/*
REBOL Syntax
2012 by Christopher Ross-Gill
Based in Part on REBOLSource / REBOL Syntax by Earl, Ladislav and Steeve
https://github.com/rebolsource/rebol-syntax/
Designed for use with:
http://railroad.my28msec.com/rr/ui
For Future Ref:
@rgchris
rgchris / so-qa.r
Last active December 14, 2015 12:48
Build a feed of questions AND answers from Stack Overflow 'most active' feed.
REBOL [
Title: "Stack Overflow Rebol Questions/Answers"
Date: 16-Feb-2013
Author: "Christopher Ross-Gill"
Options: [
AltXML: http://reb4.me/r3/altxml
Questions: http://stackoverflow.com/feeds/tag/rebol
Feed: http://-feed-location-/so.feed
]
]
@rgchris
rgchris / faces.adoc
Last active December 18, 2015 05:59
Sample MakeDocPro to AsciiDoc

R3 GUI Faces

Concepts

A face is an instance of a style.

A style holds the default attributes, variables, and functions of a GUI element, but a face object stores the specific values for that instance of the style.

@rgchris
rgchris / resizing.adoc
Last active December 18, 2015 06:08
Sample MakeDocPro to AsciiDoc #2

Resizing for R3 GUI framework

Purpose

The purpose of this document is to describe the R3 GUI resizing subsystem.

Overview

Rebol [
Title: "Add a Site"
Type: 'controller
File: %app/controllers/addsite.r
]
route () to submit [ ; where submit is %app/views/addsite/submit.html.rsp
get [] ; shows the form
put [
@rgchris
rgchris / textize-rebol-content.rebol
Last active December 7, 2022 17:51
An exercise in scraping Blogger HTML content with Rebol.
REBOL [
Title: "Scraper"
Date: 1-Dec-2013
]
textize: func [html [string!] /local rule last-list value new-table in-pre][
html: load-html/dom html
last-node: html
last-list: ""
in-pre: false
@rgchris
rgchris / links.md
Last active August 29, 2015 14:01
Testing the handling of various types of link markup.
@rgchris
rgchris / spaces-in-strings.reb
Last active August 29, 2015 14:17
Spaces in Rebol Strings (and other tests of Rebol highlighting)
Rebol [
Title: "Syntax Highlighting of Spaces in Strings"
Date: 29-Mar-2015
Author: "Christopher Ross-Gill"
]
Samples: [ ; a comment
string-with-spaces {
I am spaced.
}
@rgchris
rgchris / buckets.reb
Last active August 29, 2015 14:20
Fleshing out a model for a COLLECT/KEEP in Parse based on correctness.
Rebol [
Title: "Fleshing out a model for a COLLECT/KEEP in Parse based on correctness"
Date: 26-Apr-2015
Author: "Christopher Ross-Gill"
]
buckets: []
new-branch: quote (insert/only buckets bucket: copy [])
fold-branch: quote (bucket: buckets/2 append bucket take buckets)
kill-failed-branch: quote (remove buckets)