Skip to content

Instantly share code, notes, and snippets.

View drkameleon's full-sized avatar
🏠
Working from home

Yanis Zafirópulos drkameleon

🏠
Working from home
View GitHub Profile
@drkameleon
drkameleon / updatercsyntax.art
Created November 8, 2025 07:12
update script syntax @ Rosetta Code
API_URL: "https://rosettacode.org/w/api.php"
SESSION_COOKIES: #[]
login: function [username, password][
tokenParams: #[
action: "query"
meta: "tokens"
type: "login"
format: "json"
]
@drkameleon
drkameleon / aiguide.md
Created December 16, 2024 15:56
AI Guide for Arturo (16/12/2024)

Arturo Programming language

Language overview

Arturo is a very simple language. Even without any prior experience, I estimate it would take you roughly half an hour before you are comfortable enough to write your first program.

Here, you'll find everything you may need to know about the language (and perhaps a bit more). In a single page.


@drkameleon
drkameleon / arturo-ai-training.md
Created November 23, 2024 13:24
AI training material for Arturo

Arturo Programming language

Language overview

Arturo is a very simple language. Even without any prior experience, I estimate it would take you roughly half an hour before you are comfortable enough to write your first program.

Here, you'll find everything you may need to know about the language (and perhaps a bit more). In a single page.


@drkameleon
drkameleon / arturo-ai-manual.md
Created November 6, 2024 15:12
Arturo Trainer (updated)

Arturo Programming language

Language overview

Arturo is a very simple language. Even without any prior experience, I estimate it would take you roughly half an hour before you are comfortable enough to write your first program.

Here, you'll find everything you may need to know about the language (and perhaps a bit more). In a single page.


@drkameleon
drkameleon / arturo.md
Created November 5, 2024 13:13
AI Training

Arithmetic

add

add given values and return result

Arguments

  • valueA (:integer,:floating,:complex,:rational,:literal,:pathliteral,:quantity,:color,:object)
  • valueB (:integer,:floating,:complex,:rational,:quantity,:color,:object)

Returns

:integer,:floating,:complex,:rational,:quantity,:color,:object,:nothing

Examples

@drkameleon
drkameleon / playground.art
Created September 21, 2024 05:54
tiny UI playground for Arturo
execScript: function [scr][
null
do scr
cc: to :string unstack 1
eval ~{showResult("|cc|")}
]
webview ~{!html
<!DOCTYPE html>
<html class="has-navbar-fixed-top" lang="en">
@drkameleon
drkameleon / dictio.art
Last active October 6, 2023 09:02
Dictionary-ish example in Grafito
#!/usr/bin/env arturo
do {grafito.art}
do [
lemma: function [wrd, lng, ps][
f: form.new.unique [name: wrd]
res: word #[
lang: to :string lng,
pos: to :string ps,
@drkameleon
drkameleon / trial.dat.json
Created April 6, 2023 08:36
Trial.dat contents
{
"nand": 2,
"clamp": 2,
"info": 1,
"fdiv": 2,
"atanh": 1,
"regex?": 1,
"move": 2,
"all?": 1,
"first": 1,
@drkameleon
drkameleon / lib.files.res
Created March 1, 2023 15:32
Updated lib.files output (macOS)
Created: temp/
>> copy
copy is working well!
>> copy.directory - with empty folders
copy empty directory is working well!
@drkameleon
drkameleon / lib.files.res
Created February 28, 2023 10:45
Generated output after running `arturo tests/unittests/lib.files.art`
Created: temp/
>> copy
Hello, world!
>> copy.directory - with empty folders
temp/dest/file.txt