Skip to content

Instantly share code, notes, and snippets.


Barry Walsh draegtun

View GitHub Profile
View dp383.erl
-export([same_necklace/2, repeats/1, bonus2/0, test_examples/0]).
% see -
same_necklace(A, B) when length(A) =/= length(B) -> false;
same_necklace(A, B) ->
case string:find(A ++ A, B) of
draegtun /
Created Dec 11, 2017
Example Smalltalk code for SO
| session data |
session := ZnClient new url: ''.
session path: '/login';
formAt: 'email' put: 'jom';
formAt: 'password' put: 'mypass';
draegtun /
Created Jun 8, 2017
Final draft of CHANGES

Make (for Ren/C repo) keeps a list of notable changes to this repo grouped by release and type of change.

This process will automatically create a new


Along with this in /scripts/changes-file/ you will also find:

draegtun /
Last active May 15, 2017
User and Console wiki draft

User and Console


This documents the changes to User & Console experience in Ren/C branch of Rebol 3.


This is Rebol's REPL (Read-Eval-Print-Loop). Simply running Rebol from command-line without any options will start the console:

draegtun /
Last active May 5, 2017
What to do with system/user and system/options??


On Rebol 2 this points to user home directory (on Linux/OSX this is get-env 'HOME). On r3 this is currently set to where the r3 executable lives.

As it stands we should rename system/options/home to make it clear this is where executable lives and avoid confusing with $HOME. See %rebol.r

We can then reclaim system/options/home to replicate R2 behaviour (if we like?)

system/user or system/options?

draegtun / rebol.vim
Created Apr 27, 2017
Rebol VIM syntax file
View rebol.vim
" Vim syntax file
" Language: Rebol
" Maintainer: Mike Williams <>
" Filenames: *.r
" Last Change: 2001 May 09
" URL: N/A
" Changes-by: Barry Walsh <>
" Last updated: 17-May-2013
draegtun / repl-skin.reb
Last active Jun 8, 2018
An example REPL config file (~/.rebol/repl-skin.reb)
View repl-skin.reb
Rebol [
title: "example REPL skin config"
date: 30-Mar-2017
version: 0.0.1
;; shortcuts I like!
q: :quit
?: :help
draegtun / simple-lambda-example.reb
Last active Sep 6, 2018
Very simple anonymous lambda generator in Rebol
View simple-lambda-example.reb
>> double: lambda [? * 2]
>> double 2
== 4
>> double: lambda [? + ?]
>> double 4
== 8
>> add2: lambda [?1 + ?2]
>> add2 2 4