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
rgchris / resizing.adoc
Last active Dec 18, 2015
Sample MakeDocPro to AsciiDoc #2
View resizing.adoc

Resizing for R3 GUI framework

Purpose

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

Overview

View addsite.reb
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 Jan 1, 2016
An exercise in scraping Blogger HTML content with Rebol.
View textize-rebol-content.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 / sqlite-version.reb
Last active Jan 11, 2016
Obtain SQLite version with Rebol 3
View sqlite-version.reb
#!/usr/local/bin/ren-c
Rebol [
Title: "SQLite Init"
Date: 10-Jan-2016
Author: "Christopher Ross-Gill"
Comment: [
"Ren/C branch build with LibFFI"
http://stackoverflow.com/a/34710721/292969
]
@rgchris
rgchris / shttpd.reb
Last active Aug 3, 2016
Rebol (Ren/C) HTTPD Server Scheme
View shttpd.reb
#!/usr/local/bin/ren-c
Rebol [
Title: "A tiny static HTTP server"
Author: ["abolka" "Giulio Lunati"]
Date: [2009-11-04 2016-07-25]
; name: shttpd
; type: module
; exports: [shttpd]
]
@rgchris
rgchris / ping.reb
Last active Jan 5, 2017
Port example: Send block to Server, Responds with reversed block.
View ping.reb
#!/usr/local/bin/ren-c
Rebol [
Title: "Ping Scheme"
Date: 5-Jan-2017
Author: "Christopher Ross-Gill"
Home: https://github.com/revault/rebol-wiki/wiki/Port-Examples#tcp-ping-pong-messages
]
sys/make-scheme [
@rgchris
rgchris / int-to-bin.reb
Created Jan 25, 2017
Convert an Integer to Binary
View int-to-bin.reb
Rebol [
Title: "Integer to Binary"
Date: 24-Jan-2017
]
method-1: func [
int [integer!]
][
debase/base to-hex int 16
]
View test-httpd.reb
#!/usr/local/bin/rebol -cs
Rebol [
Title: "HTTPD Scheme"
Date: 10-Jun-2013
Author: [
"Christopher Ross-Gill" 4-Jan-2017 "Adaptation to Scheme"
"Andreas Bolka" 4-Nov-2009 "A Tiny HTTP Server"
]
File: %httpd.reb
@rgchris
rgchris / light-control.reb
Last active Feb 1, 2017
Early Pass at HTTP Driven API to Send Commands to a UDP Server
View light-control.reb
#!/usr/local/bin/ren-c
Rebol [
Title: "Turn Lights On and Off"
Date: 31-Jan-2017
Author: "Christopher Ross-Gill"
File: %light-control.reb
Version: 0.1.0
Rights: http://opensource.org/licenses/Apache-2.0
]
@rgchris
rgchris / rgc_shortcodes.php
Last active Feb 4, 2017
WordPress Plugin: adds shortcodes to assist in incorporating features of Bootstrap including elementary grid handling.
View rgc_shortcodes.php
<?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
You can’t perform that action at this time.