全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

filename:myfile.txt 包含指定文件名的 Gists

extension:yml 包含指定扩展名的 Gists

language:go 包含指定编程语言的 Gists

topic:homelab 具有给定主题的 Gists

注册

登录


全部 新建 注册 登录

所有 Gists

最近 创建
最早 创建
最近 更新
最早 更新
capitalex's Avatar

capitalex / going-places.chr

0 喜欢
0 派生
1 文件
最后活跃于 1735267148
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 喜欢
0 派生
2 文件
最后活跃于 1735261342
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 喜欢
0 派生
2 文件
最后活跃于 1735238130
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 喜欢
0 派生
2 文件
最后活跃于 1735237900
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 喜欢
0 派生
2 文件
最后活跃于 1735235784
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 喜欢
0 派生
3 文件
最后活跃于 1735184955
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 喜欢
0 派生
2 文件
最后活跃于 1735167665
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 喜欢
0 派生
2 文件
最后活跃于 1734936030
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 喜欢
0 派生
1 文件
最后活跃于 1734926456
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 喜欢
0 派生
1 文件
最后活跃于 1734909430
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)
上一页 下一页

由 Opengist 强力驱动 ⋅ Load: 281ms⋅

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