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 / old_dialogue.gd

0 likes
0 forks
1 files
Last active 1 year ago
1 extends Sequence
2
3 func setup():
4 backdrop_image('qs-background', preload('res://imgs/events/QuickShot00_background.png'))
5 backdrop_image('qs-table', preload('res://imgs/events/QuickShot01_table.png'))
6 backdrop_image('qs-guy', preload('res://imgs/events/QuickShot02_guy.png'))
7
8 func intro():
9 fade_out()
yumaikas's Avatar

yumaikas / derp.comp.tiny.js

0 likes
0 forks
3 files
Last active 1 year ago
1 return function() {
2 let min = Math.min; var max = Math.max; var huge = Number.MAX_SAFE_INTEGER;
3 let self = { state: { strings: [], slots: {} } };
4
5
6 self.counters = {
7 "loop": 1,
8 }
9
10 function match(self, counters) {
capitalex's Avatar

capitalex / going-places.chr

0 likes
0 forks
1 files
Last active 1 year ago
1 go_back, travel_sym(Id), at(FutureLocation)
2 , history(GrandparentId, LastLocation, ParentId), history(ParentId, Location)
3 <=> history(GrandparentId, LastLocation)
4 , at(Location)
5 , travel_sym(ParentId)
6
7 go_back, travel_sym(FutureID), at(FutureLocation), history(Id, Location)
8 <=> at(Location)
9 , travel_sym(Id)
capitalex's Avatar

capitalex / callatz.chr

0 likes
0 forks
2 files
Last active 1 year ago
1 move, y <=> x, move
2 move, x, x <=> x, x, eval
3 move, x <=> x
4
5 odd, y <=> x, x, x, x, x, x, odd
6 odd <=> x, eval
7
8 eval, x, x <=> y, eval
9 eval, x <=> x, x, x, odd
10 eval <=> move
capitalex's Avatar

capitalex / mem.js

0 likes
0 forks
2 files
Last active 1 year ago
1 /**
2 Input program:
3 mem(A,_), mem(A,_) <=> fail
4 prog(L,_,_,_), prog(L,_,_,_) <=> fail
5 pc(_), pc(_) <=> fail
6
7 prog(L,"add",B,A), mem(B,Y) \ mem(A,X), pc(L) <=> mem(A,X+Y), pc(L+1)
8 prog(L,"sub",B,A), mem(B,Y) \ mem(A,X), pc(L) <=> mem(A,X-Y), pc(L+1)
9 prog(L,"mult",B,A), mem(B,Y) \ mem(A,X), pc(L) <=> mem(A,X*Y), pc(L+1)
10 prog(L,"div",B,A), mem(B,Y) \ mem(A,X), pc(L) <=> mem(A,X/Y), pc(L+1)
capitalex's Avatar

capitalex / fruitcake-2.js

0 likes
0 forks
2 files
Last active 1 year 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 / fruitcake.js

0 likes
0 forks
2 files
Last active 1 year 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 1 year 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 1 year 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 1 year 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
Newer Older

Powered by Opengist ⋅ Load: 225ms⋅

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