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 / move-a.nv

0 likes
0 forks
2 files
Last active 1 year ago
1 initial-state:
2 set #1 &move
3 set #1 &a:1000000
4
5 search:
6 rule-1:
7 jez &move %rule-2
8 jez &a %rule-2
9 jez &a %rule-2
10
sierra's Avatar

sierra / curses.nv

0 likes
0 forks
1 files
Last active 1 year ago
1 |#| constant, @char-x, 5
2 |#| constant, @char-y, 5
3 |#| constant, @char, 64
4
5 | run the program |
6 start ncurses,
7 draw the player,
8 read a character,
9 clean up ncurses,
june's Avatar

june / Drawing a triangle.

0 likes
0 forks
2 files
Last active 1 year ago
A demonstration of a line drawing port.
1 |#|start exhaustive
2 |#|constant, @resolution-x, 800
3 |#|constant, @resolution-y, 600
4 ||start
5 |start|
6 @resolution-x:800,
7 @resolution-y:600,
8 set the window resolution,
9 main loop
10 |set the window resolution| @set-resolution
sierra's Avatar

sierra / rgb400_ungolfed

0 likes
0 forks
1 files
Last active 1 year ago
1 |--| Are we at the end of a line?
2 |end of line?, x| x, ~end of line
3 |end of line?| end of line
4
5 |--| Are we at the end of the screen?
6 |end of screen?, y| y, ~end of screen
7 |end of screen?| end of screen
8
9 |--| Copy the pixel coordinates from `x/y` to `@pixel-x/@pixel-y`.
10 |pixel_x=x, x|*x, @pixel-x, pixel_x=x
sierra's Avatar

sierra / rgb400.nv

0 likes
0 forks
1 files
Last active 1 year ago
1 |--| Are we at the end of a line?
2 |eol?,x|x,~eol|eol?|eol
3
4 |--| Are we at the end of the screen?
5 |eos?,y|y,~eos|eos?|eos
6
7 |--| Copy the pixel coordinates from `x/y` to `@pixel-x/@pixel-y`.
8 |px=x,x|*x,@pixel-x,px=x
9 |px=x|
10 |py=y,y|*y,@pixel-y,py=y
sierra's Avatar

sierra / rgb2.nv

0 likes
0 forks
1 files
Last active 1 year ago
1 |--| Are we at the end of a line?
2 |eol?,x|x,~eol|eol?|eol
3
4 |--| Are we at the end of the screen?
5 |eos?,y|y,~eos|eos?|eos
6
7 |--| Copy the pixel coordinates from `x/y` to `@pixel-x/@pixel-y`.
8 |px=x,x|*x,@pixel-x,px=x
9 |px=x|
10 |py=y,y|*y,@pixel-y,py=y
sierra's Avatar

sierra / rgb.nv

0 likes
0 forks
1 files
Last active 1 year ago • Forked from june/rgb.nv
1 |--| Constants.
2 |x:128|x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,
3 x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,
4 x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,
5 x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
6 |y:128|y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,
7 y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,
8 y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,
9 y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
10 |pr=x:128|pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,
june's Avatar

june / rgb-assembly.nv

0 likes
1 forks
1 files
Last active 1 year ago
1 ||start
2 |start| 1
3
4 |ld x 128, x| ld x 128
5 |ld x 128 | x, x, x, x, x, x, x, x,
6 x, x, x, x, x, x, x, x,
7 x, x, x, x, x, x, x, x,
8 x, x, x, x, x, x, x, x,
9 x, x, x, x, x, x, x, x,
10 x, x, x, x, x, x, x, x,
june's Avatar

june / rgb.nv

0 likes
1 forks
1 files
Last active 1 year ago
1 |--| Constants.
2 |x:128|x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,
3 x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,
4 x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,
5 x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
6 |y:128|y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,
7 y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,
8 y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,
9 y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
10 |pr=x:128|pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,pr=x,
june's Avatar

june / A pen plotter demonstration.

0 likes
0 forks
2 files
Last active 1 year ago
A sample pen plotter program that draws 'Hi'.
1 |#| start exhaustive
2 |u | up
3 |d | down
4 |l | left
5 |r | right
6 |f | forward
7 |tl | turn left
8 |tr | turn right
9 |uu | u,u
10 |dd | d,d
Newer Older

Powered by Opengist ⋅ Load: 181ms⋅

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