Skip to content

Instantly share code, notes, and snippets.

@ne1uno
ne1uno / cgpt-eyechart.red
Last active March 6, 2023 21:10
chatGPT assisted mock eye chart experiment in AI pair programming in red language
s2334p3 chatGPT assisted mock eye chart
with riddles on progressively smaller font lines
an experiment in AI pair programming in red language it has limited training with.
it slips into rebol, python or javascript. inventing syntax and functions
it can mimic a REPL to show source of functions, which it also invents.
this is a crazy way to work
may or may not post the entire q&a, would need too much annotation
here's a screenshot...
@ne1uno
ne1uno / b64-png.red
Last active September 23, 2022 13:36
base 64 & image utility with red-lang
small utility to work with base 64 and custom red-lang embedded png images
bits of code from anywhere,
screenshot
https://usercontent.irccloud-cdn.com/file/2zLaOKXj/b64-png-screenshot.jpg
still haven't solved how to encode base 64 png, but decoding works
could decode directly from file? might be a workaround for now... nope
user interface has some anomalies, likely caused by ne1, may or may not fix.
@ne1uno
ne1uno / polkadot-demo.red
Last active May 24, 2022 18:25
draw random polka dots in red-lang
draw some random polka dots, could be flashing light hazard.
https://en.wikipedia.org/wiki/Polka_dot
https://www.bing.com/images/search?q=pokadots
https://www.bing.com/images/search?q=polkadots
not quite there yet, needs a heuristic color selection.
random isn't always complementary.
dot distribution looks too much like a plain regular grid
ideas and maybe source from all the usual suspects
@ne1uno
ne1uno / cognition.red
Last active May 4, 2022 08:08
cog test prototype with XN and Stroop
cognitive style tests, games, brain teasers.
see screenshot cog-test-red-lang.gif
https://usercontent.irccloud-cdn.com/file/3FxMnTHm/cog-test-red-lang.gif
download an under 2mb cross platform script interpreter/compiler from red-lang.org
warning, could crash or silent exit at any moment. it's not you it's me.
I knocked this together in a few hours/days, it's at best lightly tested.
will work w/o @GalenIvanov Animation DSL with a few conditionals
may be the default soon in recent red-lang anyway
@ne1uno
ne1uno / red-diffwords.red
Created November 12, 2019 16:48
generate red language syntax file for geany editor/ide two of two files
may be auto generated
diff of keywords difference in cli or gui console and color names
Red [
Title: "red-diffwords.red"
Author: ""
Date: ""
rights: "MITTENS"
;Needs: 'View ;can't have view cli
]
@ne1uno
ne1uno / make-geany-conf.red
Last active November 22, 2019 19:59
generate red language syntax file for geany editor/ide one of two files plus a colorscheme.conf
ne1 11/19 hardwire to generate syntax file for geany
needs more work to filter and split keyword list by type
did I mention I barely knew any rebol/red when I first got this working?
still a bit surprised when something works the first time
there sure are a lot of existing words for a language with so few reserved
needs %./red-diffwords.red to declare several lists of keywords
no command-line options but can edit debug+ to turn off or reduce prints to console
don't debug the comments
http://news.e-scribe.com/193
To move, you tell the computer how many numbers (counting from the left) to reverse.
For example, if the current list is 2 3 4 5 1 6 7 8 9 and you reverse 4,
the result will be 5 4 3 2 1 6 7 8 9. Now if you reverse 5, you win.
• Comment from Pascal
Funny game, here is a REBOL version of this game. An interesting thing is its readability.
numbers: random ordered: [1 2 3 4 5 6 7 8 9]
@ne1uno
ne1uno / tog-button.red
Last active October 25, 2019 21:21
toggle-button & spin-box demo
find red-lang interpreter/compiler for many popular OS http://www.red-lang.org
welcome any suggestions, comments or complaints about the code or anything else.
note: new gui won't show print on console till it gets focus
Red [
title "cheap toggle button & spin-box demo "
auth: "ne1"
date: "2018/11"
rights: ""