Skip to content

Instantly share code, notes, and snippets.

View iArnold's full-sized avatar

iArnold iArnold

  • Freelance ICT Specialist
  • Netherlands
View GitHub Profile
@iArnold
iArnold / qi-dyn.red
Created October 5, 2015 10:01
A try to see a line being drawn on the canvas
Red [
Needs: 'View
]
system/view/debug?: yes
workstation?: system/view/platform/product = 1
print [
"Windows" switch system/view/platform/version [
@iArnold
iArnold / rs-mac-window.reds
Created October 1, 2015 17:43 — forked from qtxie/rs-mac-window.reds
Red/System Mac OSX Window
Red/System [
Title: "Red/System Mac OSX Window"
Author: "Qingtian Xie"
File: %rs-mac-window.reds
Type: 'library
Tabs: 4
Rights: "Copyright (C) 2014 Qingtian Xie. All rights reserved."
Compiling: "rebview.exe -qs red.r -t Darwin rs-mac-window.reds"
Reference: {
https://github.com/CodaFi/C-Macs
Red [
Needs: 'View
]
system/view/debug?: yes
workstation?: system/view/platform/product = 1
print [
"Windows" switch system/view/platform/version [
@iArnold
iArnold / string-to-integer.red
Created June 17, 2015 19:10
string-to-integer convertion
string-to-integer: function [
input [string!]
return: [integer! none!]
/local
total [integer!]
in-char [char! string!]
cipher [integer!]
is-number [logic!]
][
is-number: false
@iArnold
iArnold / found?.red
Created May 20, 2015 08:42
Mezzanine FOUND? for Red programming language
found?: func [
"Returns true if value is not NONE."
value
][
not none? :value
]