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 / fruitcake.js

0 likes
0 forks
2 files
Last active 11 months ago
1 /**
2 *
3 * Automatically generated
4 * Do not edit
5 *
6 * Created using CHR.js AOT compiler
7 * (CHR.js version v3.3.21)
8 * http://github.com/fnogatz/CHR.js
9 *
10 */
capitalex's Avatar

capitalex / tables-with-var-pass.nv

0 likes
0 forks
3 files
Last active 11 months ago
1 |#variables|
2 , @table id, @table row, @table size
3 , pretty print rows iterator, pretty print row index
4
5
6 |_| Define our tables
7 |#table, singles|
8 , 1st
9
10 |#table, doubles|
capitalex's Avatar

capitalex / output.txt

0 likes
0 forks
2 files
Last active 11 months ago
1 123
2 234
3 25
4 singles #1: {
5 ['1st'] = 123
6 }
7 singles #2: {
8 ['1st'] = 234
9 }
10 singles #3: {
capitalex's Avatar

capitalex / old-bullet-move.nv

0 likes
0 forks
2 files
Last active 11 months ago
1 |#port, on move bullets, needs, @move bullets|
2 |#port body, on move bullets, lua|
3 local dt = state.dt
4 local bullets = state.bullets
5 for _, bullet in ipairs(bullets) do
6 if not (bullet.frozen and counters["game is paused"] > 0) then
7 bullet.frozen = false
8 bullet.x = bullet.x + math.cos(bullet.angle) * 350 * dt
9 bullet.y = bullet.y + math.sin(bullet.angle) * 350 * dt
10 local in_bounds
capitalex's Avatar

capitalex / zombie-more-vera.nv

0 likes
0 forks
1 files
Last active 11 months ago
1 |#port, on draw zombie
2 , needs, @draw zombie
3 , reads, @zombie index|
4 |#port body, on draw zombie, lua|
5 print("DRAWING ZOMBIE", zombie_index)
6 local zombie = state.zombies[zombie_index]
7 love.graphics.setColor(0.145, 0.133, 0.169)
8 love.graphics.circle("fill", zombie.x + 5, zombie.y + 5, zombie.r)
9
10 love.graphics.setColor(0.882, 0.314, 0.282)
capitalex's Avatar

capitalex / zombies.nv

0 likes
0 forks
1 files
Last active 11 months ago
1 |#port, on draw zombie
2 , needs, @draw zombie
3 , reads, @zombie index|
4 |#port body, on draw zombies, lua|
5 local zombies = state.zombies
6 love.graphics.setColor(0.145, 0.133, 0.169)
7 love.graphics.circle("fill", zombie.x + 5, zombie.y + 5, zombie.r)
8
9 love.graphics.setColor(0.882, 0.314, 0.282)
10 love.graphics.circle("fill", zombie.x, zombie.y, zombie.r)
yumaikas's Avatar

yumaikas / mechanistic_pumpkin_bread_recipe.nv

0 likes
0 forks
1 files
Last active 11 months ago
1 |_| Pumpkin Bread Recipe
2
3 || start oven, gather equipment, gather ingredients
4
5 | start oven, imperial | oven fahrenhiet:375
6 | start oven, metric | oven celcius:190
7
8 | gather equipment |
9 fetch medium bowl, fetch large bowl,
10 fetch half teaspon,
yumaikas's Avatar

yumaikas / Recursive Mira Pattern Match

0 likes
0 forks
1 files
Last active 11 months ago
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 / timers.nv

0 likes
0 forks
1 files
Last active 11 months ago
1 |_| Stateful actions in the host system
2 |#port, on create new timer
3 , needs, @create new timer
4 , takes, @timer duration ms, @timer started, @timer once|
5 , @new timer id
6
7 |#port, on destroy timer
8 , needs, @destroy timer, takes, @timer id|
9
10 |#port, on tick timer
yumaikas's Avatar

yumaikas / html_calc.nv

0 likes
0 forks
5 files
Last active 1 year ago
1 | # meta code status | Untested, uncompiled
2 | #include, strings.nv, slots.nv, DOM.nv |
3
4 | #strings, br, app, button, calc-output, div,
5 AC, All Clear, C, Clear,
6 0,9,8,7,6,5,4,3,2,1,
7 +,/,*,-,.,=,
8 ,Press 7, Press 8, Press 9, Press Divide
9 ,Press 4, Press 5, Press 6, Press Multiply
10 ,Press 1, Press 2, Press 3, Press Subtract
Newer Older

Powered by Opengist ⋅ Load: 246ms⋅

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