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 / mix-paint.nv

0 likes
0 forks
1 files
Last active 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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 1 year 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
capitalex's Avatar

capitalex / fizzbuzz.poqs

0 likes
0 forks
1 files
Last active 1 year ago
1 : {run fizzbuzz from $x to $y} >
2 {current number is $x} {run fizzbuzz to $y} :
3
4 : {run fizzbuzz to $n} {current number is $n} >
5 {fizz $n} {buzz $n} {number is $n} :
6
7 : {run fizzbuzz to $stop-value} {current number is $n} >
8 {run fizzbuzz to $stop-value}
9 {next number from $n} {fizz $n} {buzz $n} {number is $n} {wrote ""} :
capitalex's Avatar

capitalex / averages.poqs

0 likes
0 forks
1 files
Last active 1 year ago
1 We've collected the following data points --
2 - {data point of #4}
3 - {data point of #1}
4 - {data point of #7}
5 - {data point of #8}
6 - {data point of #1}
7
8 Let's find the average of these values. We've got a tally running, we
9 should continue accumulating values --
capitalex's Avatar

capitalex / simple_state.gd

0 likes
0 forks
1 files
Last active 1 year ago
1 extends Node
2 class_name _SimpleState
3
4 signal state_changed(name, state)
5
6 var state := { }
7
8
9 func register(state_name: String, inital_state: Dictionary = {}) -> void:
10 state[state_name] = inital_state
Newer Older

Powered by Opengist ⋅ Load: 224ms⋅

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