Skip to content

Instantly share code, notes, and snippets.

View rgchris's full-sized avatar

Christopher Ross-Gill rgchris

View GitHub Profile
@rgchris
rgchris / rgc_shortcodes.php
Last active February 4, 2017 01:07
WordPress Plugin: adds shortcodes to assist in incorporating features of Bootstrap including elementary grid handling.
<?php
/**
* @package Shortcodes for Bootstrap: Grid, Misc
* @version 0.6
*/
/*
Plugin Name: Shortcodes for Bootstrap: Grid, Misc
Plugin URI: https://gist.github.com/rgchris/b473a165b6c44275b6b8a2e693e9deca
Description: Adds shortcodes to assist in incorporating features of Bootstrap including elementary grid handling.
Author: Christopher Ross-Gill
@rgchris
rgchris / get-object.reb
Last active February 11, 2017 21:30
Get Object
#!/usr/local/bin/rebol -cs
Rebol [
Title: "Get Object"
Author: "Christopher Ross-Gill"
]
do %httpd.r
do %altjson.r
@rgchris
rgchris / altjson-renc.reb
Last active May 26, 2017 17:46
AltJSON and HTTPD adapted for Ren-C
Rebol [
Title: "JSON Parser for Rebol 3"
Author: "Christopher Ross-Gill"
Date: 18-Sep-2015
Home: http://www.ross-gill.com/page/JSON_and_Rebol
File: %altjson.r
Version: 0.3.6.1
Purpose: "Convert a Rebol block to a JSON string"
Rights: http://opensource.org/licenses/Apache-2.0
; Type: 'module
#!/usr/local/bin/ren-c
Rebol [
Title: "Minimal HTTPD 404 Server"
Date: 17-Mar-2017
]
sys/make-scheme [
title: "Minimal 404 Server"
name: 'httpd
Rebol [
Title: "XML Parser/Object Model for Rebol 3"
Author: "Christopher Ross-Gill"
Date: 22-Oct-2009
Home: http://www.ross-gill.com/page/XML_and_REBOL
File: %xml.reb
Version: 0.5.0
Purpose: "XML handler for Rebol v3"
Rights: http://opensource.org/licenses/Apache-2.0
Type: module
#!/usr/local/bin/ren-c
Rebol [
Title: "Fetch Commits"
Date: 19-May-2017
Index: http://metaeducation.s3.amazonaws.com
]
; import <xml>
import https://raw.githubusercontent.com/rgchris/Scripts/master/experimental/altxml.reb
@rgchris
rgchris / cgi-concept.reb
Created May 21, 2017 20:10
Possible implementation of CGI with Ren-C HTTPD module.
#!/usr/local/bin/ren-c
Rebol [
Title: "CGI Tester"
Date: 21-May-2017
Author: "Christopher Ross-Gill"
]
import <httpd>
@rgchris
rgchris / screen-independence.r
Created June 26, 2017 14:40
Screen independent sizing in Rebol/View 2.7.8
Rebol [
Title: "Screen Independent"
Date: 26-Jun-2017
Author: "Mennohexo"
]
probe base-size: system/view/screen-face/size / 2
vs: use [base][ ; VS named after VW/VH CSS convention
probe base: reduce [base-size/x / 100 base-size/y / 100]
@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 / parse-fsm.red
Last active July 21, 2017 22:05
Contrived Parse-based FSM
#!/usr/local/bin/red
Red [
Title: "Contrived FSM Example"
Date: 21-Jul-2017
Author: "Christopher Ross-Gill"
]
state: mark: none