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
yumaikas's Avatar

yumaikas / WIP_CalculatorUI.nv

0 likes
0 forks
1 files
Last active 1 year ago
1 | #strings, br, app, button,
2 AC, All Clear, C, Clear,
3 9,8,7,6,5,4,3,2,1, +,/,*,-
4 Press 7, Press 8, Press 9, Press Divide,
5 Press 4, Press 5, Press 6, Press Multiply
6 |
7 | #slots, inner content, vera event |
8
9 | #port, on log string, needs, @on log, clears, @on log |
10 | #port, on clear log, needs, @clear log, clears, @clear log |
capitalex's Avatar

capitalex / tic-tac-toe.maude

0 likes
0 forks
1 files
Last active 1 year ago
1 omod TIC-TAC-TOE is
2 including STD-STREAM .
3 including NAT .
4
5 sorts Player X O .
6 subsorts X O < Player .
7
8 op Xs : -> X . op Os : -> O .
9 op next-player : Player -> Player .
10 eq next-player(Xs) = Os .
capitalex's Avatar

capitalex / main-loop.nv

0 likes
0 forks
1 files
Last active 1 year ago
1 |_| Ports for reading and writing events
2 |#port, on start polling, needs, @start polling|
3 |#port, on poll input, needs, @poll input|
4 , @event keypressed
5 , @event keyreleased
6 , @event mousemoved
7 , @event mouse pressed
8 , @no events left
9
10 |#port, on quit love, needs, @quit love|
capitalex's Avatar

capitalex / zombies.nv

0 likes
0 forks
1 files
Last active 1 year ago
1 player $player,
2 $player at x #400 and y #300,
3 can update for $player.
4
5 update $id, player $id?:
6 , compute player $id velocity x
7 , @is-down key a, @is-down key d
8 , compute player $id velocity y
9 , @is-down key w, @is-down key s
10 .
capitalex's Avatar

capitalex / generated-text-input.lua

0 likes
0 forks
1 files
Last active 1 year ago
1 local min, max, huge = math.min, math.max, math.huge
2 local machine = {}
3
4 machine.counters = {
5 ["update scene state"] = 0,
6 ["draw scene"] = 0,
7 ["present current frame"] = 0,
8 ["sleep for 1ms"] = 0,
9 ["next cycle"] = 0,
10 ["updating scene"] = 0,
june's Avatar

june / ALU Port

0 likes
0 forks
1 files
Last active 1 year ago
An implementation of an ALU port, implementing addition and subtraction.
1 |=================================================|
2 |#| start exhaustive
3 |@alu-accept-operation, @alu-op, @alu-subtract:max| @alu-invalid-operation
4 |@alu-accept-operation, @alu-op, @alu-add:max | @alu-accept-operation, @alu-clear-out:max, @alu-subtract:max
5 |@alu-accept-operation, @alu-op | @alu-accept-operation, @alu-clear-out:max, @alu-add:max
6
7 |#| constant, @alu-clear-out, 4294967295
8 |@alu-clear-out:max| @alu-clear-out:4294967295
9
10 |#| constant, @alu-add, 4294967295
capitalex's Avatar

capitalex / generated-text-input.lua

0 likes
0 forks
1 files
Last active 1 year ago
1 local min, max, huge = math.min, math.max, math.huge
2 local machine = {}
3
4 machine.counters = {
5 ["run current frame"] = 0,
6 ["step timer"] = 0,
7 ["clear the screen"] = 0,
8 ["draw scene"] = 0,
9 ["present current frame"] = 0,
10 ["sleep for 1ms"] = 0,
june's Avatar

june / gist:21596a68a7654ad39e0e289b0541639c

0 likes
0 forks
1 files
Last active 1 year ago
1 |------------------------------------------------------|
2 |#| constant, @resolution-x, 400
3 |#| constant, @resolution-y, 400
4 ||window, @resolution-x:400, @resolution-y:400, display
5 |window| @set-resolution
6
7 |#| constant, Loop x, 400
8 |#| constant, Loop y, 400
9 |#| constant, x->p, 400
10 |#| constant, y->p, 400
sierra's Avatar

sierra / resize.nv

0 likes
0 forks
1 files
Last active 1 year ago
1 ||start, @resolution-x:17,@resolution-y:17,@set-resolution
2 |clear__width, width| clear__width:4294967295
3 |clear__width|
4 |set_const__width__15| width:15
5 |clear__height, height| clear__height:4294967295
6 |clear__height|
7 |set_const__height__15| height:15
8 |clear__y, y| clear__y:4294967295
9 |clear__y|
10 |set_const__y__1| y:1
capitalex's Avatar

capitalex / group-etch-a-sketch.nv

0 likes
0 forks
1 files
Last active 1 year ago
1 |#| new buttons row
2 |#| button, ⇐, left
3 |#| button, ⇑, up
4 |#| button, ⇓, down
5 |#| button, ⇒, right
6 |#| new buttons row
7 |#| button, Pen Down, pen down
8 |#| button, Pen Up, pen up
9 |#| new buttons row
10 |#| button, <h2 style="color:red">██</h2>, set red
Newer Older

Powered by Opengist ⋅ Load: 241ms⋅

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