Skip to content

Instantly share code, notes, and snippets.

Barry Walsh draegtun

Block or report user

Report or block draegtun

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
@draegtun
draegtun / so-example.st
Created Dec 11, 2017
Example Smalltalk code for SO
View so-example.st
| session data |
session := ZnClient new url: 'http://cloud-storage.com'.
"Login"
session path: '/login';
formAt: 'email' put: 'jom';
formAt: 'password' put: 'mypass';
post.
@draegtun
draegtun / CHANGES.md
Created Jun 8, 2017
Final draft of CHANGES
View CHANGES.md
View README.md

Make CHANGES.md (for Ren/C repo)

CHANGES.md keeps a list of notable changes to this repo grouped by release and type of change.

This process will automatically create a new CHANGES.md

Files

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

View CHANGES.md
@draegtun
draegtun / console.md
Last active May 15, 2017
User and Console wiki draft
View console.md

User and Console

see: https://github.com/r3n/reboldocs/wiki/User-and-Console

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

Console

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

@draegtun
draegtun / system-proposal.md
Last active May 5, 2017
What to do with system/user and system/options??
View system-proposal.md

system/options/home

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
draegtun / rebol.vim
Created Apr 27, 2017
Rebol VIM syntax file
View rebol.vim
" Vim syntax file
" Language: Rebol
" Maintainer: Mike Williams <mrw@netcomuk.co.uk>
" Filenames: *.r
" Last Change: 2001 May 09
" URL: N/A
" Changes-by: Barry Walsh <draegtun@gmail.com>
" Last updated: 17-May-2013
@draegtun
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
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
@draegtun
draegtun / challenge-304-accounts.reb
Created Mar 1, 2017
Reddit DailyProgrammer - "Little Accountant"
View challenge-304-accounts.reb
Rebol [
see: https://www.reddit.com/r/dailyprogrammer/comments/5wnbsi/20170228_challenge_304_easy_little_accountant/
]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Helper functions
tie: function [s delim /string] [
s: next s
forskip s 2 [insert s delim]
You can’t perform that action at this time.