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 / fast-counter-to-bits.nv

0 likes
0 forks
1 files
Last active 2 years ago
1 |x to bits|
2 , fill b[3] with x:8, is b[3] filled?
3 , fill b[2] with x:4, is b[2] filled?
4 , fill b[1] with x:2, is b[1] filled?
5 , fill b[0] with x:1, is b[0] filled?
6
7 |release x, x to consume| x
8 |release x|
9
10 |consume x, x to consume|
capitalex's Avatar

capitalex / mod-24.nb

0 likes
0 forks
1 files
Last active 2 years ago
1 |make a copy of A, A| make a copy of A, duplicate A
2 |make a copy of A|
3
4 |duplicate A| A, copy of A
5
6 |is A a multiple of 24?|
7 , make a copy of A,
8 , divide the copy by 24
9 , multiply the result by 24:1000
10 , did we get the same number?:1000
sierra's Avatar

sierra / game_of_life.nv

0 likes
0 forks
1 files
Last active 2 years ago
1 ||start
2 |start| tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_7, tmp_8, tmp_11, tmp_83, tmp_84, tmp_85, tmp_86, tmp_87, tmp_88, tmp_92, tmp_93, tmp_96, tmp_97, tmp_100, tmp_101, tmp_104, tmp_105, tmp_108, tmp_109, tmp_112, tmp_113, tmp_114, tmp_115, tmp_118, tmp_119, tmp_122, tmp_123, tmp_126, tmp_127, tmp_128, tmp_129, tmp_130, tmp_131, tmp_132, tmp_133, tmp_137, tmp_138, tmp_141, tmp_142, tmp_145, tmp_146, tmp_149, tmp_150, tmp_153, tmp_154, tmp_157, tmp_158, tmp_159, tmp_160, tmp_163, tmp_164, tmp_167, tmp_168, tmp_171, tmp_172, tmp_173, tmp_174, tmp_175, tmp_176, tmp_177, tmp_178, tmp_182, tmp_183, tmp_186, tmp_187, tmp_190, tmp_191, tmp_194, tmp_195, tmp_198, tmp_199, tmp_202, tmp_203, tmp_204, tmp_205, tmp_208, tmp_209, tmp_212, tmp_213, tmp_216, tmp_217, tmp_218, tmp_219, tmp_220, tmp_221, tmp_222, tmp_223, tmp_227, tmp_228, tmp_231, tmp_232, tmp_235, tmp_236, tmp_239, tmp_240, tmp_243, tmp_244, tmp_247, tmp_248, tmp_249, tmp_250, tmp_253, tmp_254, tmp_257, tmp_258, tmp_261, tmp_262, tmp_263, tmp_264, tmp_265, tmp_266, tmp_267, tmp_268, tmp_272, tmp_273, tmp_276, tmp_277, tmp_280, tmp_281, tmp_284, tmp_285, tmp_288, tmp_289, tmp_292, tmp_293, tmp_294, tmp_295, tmp_298, tmp_299, tmp_302, tmp_303, tmp_306, tmp_307, tmp_308, tmp_309, tmp_311, tmp_312, tmp_313,
3 |tmp_0, width| tmp_0
4 |tmp_0|
5 |tmp_1| width:15
6 |tmp_2, height| tmp_2
7 |tmp_2|
8 |tmp_3| height:15
9 |tmp_4, y| tmp_4
10 |tmp_4|
capitalex's Avatar

capitalex / mix-paint.nv

0 likes
0 forks
1 files
Last active 2 years ago
1 |red paint, blue paint, mix paint|
2 , purple paint
3 , mix paint
4
5 || red paint:100
6 , blue paint:32
7 , mix paint:10
june's Avatar

june / A small game.

0 likes
0 forks
1 files
Last active 2 years ago
A livecoded text adventure game with a win and loss condition.
1 Start the game:
2 The Road is to the east of The House,
3 The Forest is to the east of The Road,
4 The Shed is to the south of The House,
5 The Field is to the south of The House,
6 The Shed is locked,
7 You spawn.
8
9 You are next to $a $place: You are at $a $place.
capitalex's Avatar

capitalex / 00.screen-ports-currently.lua

0 likes
0 forks
2 files
Last active 2 years ago
1 return function(lvera)
2
3 local screen = love.graphics.newCanvas()
4 lvera:add_port({"@set resolution"}, function(counters)
5 love.window.setMode(counters["@resolution x"], counters["@resolution y"])
6 screen = resize(old_screen)
7 counters["@resolution x"] = 0
8 counters["@resolution y"] = 0
9 counters["@set resolution"] = 0
10 end)
capitalex's Avatar

capitalex / paint.generated.lua

0 likes
0 forks
1 files
Last active 2 years ago
1 local min, max, huge = math.min, math.max, math.huge
2 return function(counters, ports)
3 if counters["@set resolution"] > 0 then
4 ports[1].hook(counters)
5 return true
6 elseif counters["@set pixel"] > 0 then
7 ports[2].hook(counters)
8 return true
9 elseif counters["@draw line"] > 0 then
10 ports[3].hook(counters)
capitalex's Avatar

capitalex / draw.nv

0 likes
0 forks
3 files
Last active 2 years ago
1 |#| constant, @sleep, 60
2 |#| constant, @pixel r, 255
3 |#| constant, @pixel g, 255
4 |#| constant, @pixel b, 255
5 |#| constant, clear old mouse x, 1000000
6 |#| constant, clear old mouse y, 1000000
7 |#| constant, current mouse x -> old mouse x, 1000000
8 |#| constant, current mouse y -> old mouse y, 1000000
9 |#| constant, @mouse x -> current mouse x, 1000000
10 |#| constant, @mouse y -> current mouse y, 1000000
capitalex's Avatar

capitalex / test.nv

0 likes
0 forks
2 files
Last active 2 years ago
1 |#| constant, a, 1000000
2
3 |move, a, a| move, move, b
4 |move|
5
6 || move, a:1000000
sierra's Avatar

sierra / rgb-assembly.nv

0 likes
0 forks
1 files
Last active 2 years ago • Forked from june/rgb-assembly.nv
1 ||start
2 |start| 1
3
4 |ld x 128, x| ld x 128
5 |ld x 128 | x:128
6 |ld y 128, y| ld y 128
7 |ld y 128 | y:128
8
9 |jz x eol, 4, x| x, 4
10 |jz x eol, 4 | eol
Newer Older

Powered by Opengist ⋅ Load: 264ms⋅

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