All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
capitalex's Avatar

capitalex / bf.cul

0 likes
0 forks
1 files
Last active 1740328834
1 : eval (run '+) (left '0) -> (left '1) (ran '+) ;
2 : eval (run '+) (left '1) -> (right '0) (ran '+) +carry eval ;
3
4 : +carry (left '0) -> (left '1) (shift bits left) ;
5 : +carry (left '*) -> (left '*) (shift bits left) ;
6 : +carry (left '1) -> (right '0) +carry ;
7
8
9
10 : eval (run '-) (left '1) -> (left '0) (ran '-) eval ;
june's Avatar

june / Makermod Elements V2

0 likes
0 forks
1 files
Last active 1739050097
1 //{[(<Element script V2>)]}
2 mmarkfoot
3 say ^0ELEMENT SCRIPT V2 ^5By ^1µ^2/^0Ðàrk^1Qµàkè^2/^1S
4 wait 120
5 say ^6I call the four ^3elements: ^1Fire, ^5Air, ^4Water ^6and ^2Earth ^6to fight along side me!
6 marm 0
7 mplacefx ships/fire 1;mgrab
8 mplacefx howler/sonic 1;mgrab
9 mplacefx env/water_impact 1;mgrab
10 mplacefx env/quake_small 1;mgrab
capitalex's Avatar

capitalex / main.lua

0 likes
0 forks
3 files
Last active 1739034226
1 local pprint = require "pprint"
2 local QueueMap = require "queue-map"
3 local the_eye = require "the-eye"
4
5 -- knowledge base
6 local kb = QueueMap.new()
7
8 for _, pixel in ipairs(the_eye) do
9 kb:enqueue("image $image $x $y $r $g $b", {"eye", pixel[4], pixel[5], pixel[1], pixel[2], pixel[3]})
10 end
capitalex's Avatar

capitalex / hypot.poqs

0 likes
0 forks
1 files
Last active 1738997080
1 { [#port] [@add (x) and (y) into (where)] =>
2 [% push(vars.where, vars.x + vars.y) %] }
3
4 { [#port] [@square root of (x) into (where)] =>
5 [% push(vars.where, math.sqrt(vars.x)) %] }
6
7 { [#port] [@write (mesage)] =>
8 [% io.write(vars.message) %] }
9
10 { [hypotenuse of (a) and (b)] =>
capitalex's Avatar

capitalex / fizzbuzz.factor

0 likes
0 forks
1 files
Last active 1738992804
1 USING: io kernel math math.functions math.parser ranges
2 sequences ;
3 IN: rosetta-code.fizz-buzz
4
5 PREDICATE: fizz < integer 3 divisor? ;
6 PREDICATE: buzz < integer 5 divisor? ;
7
8 INTERSECTION: fizzbuzz fizz buzz ;
9
10 GENERIC: fizzbuzz>string ( n -- str )
capitalex's Avatar

capitalex / path-bag.lua

0 likes
0 forks
2 files
Last active 1738990209
1 love = love or {}
2 local pprint = require "pprint"
3
4 --[[
5 If you are familiar with jargon, then a "path bag" is
6 a muliset that is implemented as a prefix tree.
7
8 this is a path
9 this is another path
10 this is a final path
yumaikas's Avatar

yumaikas / compiled_query.js

0 likes
0 forks
2 files
Last active 1738868695
1 /*
2 |
3 lightning struck $x $y
4 , $something is at $x $y?
5 , $something has inventory $inventory?
6 , $inventory has item $item?
7 , $item is $class?
8 , $class is conductive?
9 |
10 $something is struck by lightning
capitalex's Avatar

capitalex / moonlets.lua

0 likes
0 forks
1 files
Last active 1738819593
1 -- slow, inefficient, and partial implemention of a fraglets
2 -- interpreter. Basically enough to run a factorial program
3 -- Also, I changed the syntax.
4 local fraglets = {}
5 local function print_pool()
6 print("--- fraglets ---")
7 for i, fraglet in ipairs(fraglets) do
8 print(table.concat(fraglet, " "))
9 end
10 print()
capitalex's Avatar

capitalex / heap-sort.modal

0 likes
0 forks
1 files
Last active 1738793865
1 <> (?: print) (?:)
2
3 <> ((Num ?x) (Num ?y) '<) (?((?0 ?1 ?:) ((Bool ?:))) ?x ?y <)
4
5 <> ((Bool 1) if ?a ?b) (?a)
6 <> ((Bool 0) if ?a ?b) (?b)
7
8 <> (Empty ?x meld) (?x)
9 <> (?x Empty meld) (?x)
10 <> ((H (?x) (L ?h)) (H (?y) (L ?j)) meld) (
capitalex's Avatar

capitalex / luneur.lua

0 likes
0 forks
1 files
Last active 1738214147
1 local net, live = {}, {}
2
3 local function neuron(name)
4 if not net[name] then
5 net[name] = {
6 name = name,
7 alive = false, sleep = false,
8 arity = 0, saturation = 0,
9 excite = {},
10 inhibit = {},
Newer Older

Powered by Opengist ⋅ Load: 188ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文