Skip to content

Instantly share code, notes, and snippets.

Christopher Ross-Gill rgchris

View GitHub Profile
@rgchris
rgchris / links.md
Last active Aug 29, 2015
Testing the handling of various types of link markup.
View links.md
@rgchris
rgchris / spaces-in-strings.reb
Last active Aug 29, 2015
Spaces in Rebol Strings (and other tests of Rebol highlighting)
View spaces-in-strings.reb
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 Aug 29, 2015
Fleshing out a model for a COLLECT/KEEP in Parse based on correctness.
View buckets.reb
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)
@rgchris
rgchris / make-crc.reb
Created Jul 30, 2015
Calculate a CRC
View make-crc.reb
Rebol [
Title: "Make CRC"
Date: 25-May-2015
Author: "Christopher Ross-Gill"
]
shift32: func [value [integer!] bits [integer!] /logical][
apply :shift [to integer! #{00000000FFFFFFFF} and to binary! value bits logical]
]
@rgchris
rgchris / test-power-mezz.reb
Last active Aug 29, 2015
Power Mezz failure on Ren/C
View test-power-mezz.reb
#!/usr/local/bin/ren-c
Rebol [
Title: "Power Mezz Test"
Date: 7-Jul-2015
Author: "Christopher Ross-Gill"
]
extend lib 'envelop envelop: func [value][compose [(value)]]
@rgchris
rgchris / comments-alt.c
Last active Oct 1, 2015
Spacing proposal for Rebol C source
View comments-alt.c
///
/// quit: native
///
/// {Stop evaluating and return control to command shell or calling script.}
///
/// /with {Yield a result (mapped to an integer if given to shell)}
/// value [any-type!] "See: http://en.wikipedia.org/wiki/Exit_status"
/// /return "(deprecated synonym for /WITH)"
/// return-value
@rgchris
rgchris / rebol-syntax-for-ace.js
Created Feb 2, 2013
Rebol Syntax for ACE editor.
View rebol-syntax-for-ace.js
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 Dec 12, 2015
EBNF Notation describing the REBOL (and family) Message Format
View rebol.ebnf
/*
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 Dec 14, 2015
Build a feed of questions AND answers from Stack Overflow 'most active' feed.
View so-qa.r
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 Dec 18, 2015
Sample MakeDocPro to AsciiDoc
View faces.adoc

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.

You can’t perform that action at this time.