全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

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

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

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

topic:homelab 具有给定主题的 Gists

注册

登录


全部 新建 注册 登录

所有 Gists

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

capitalex / zombies.mira

0 喜欢
0 派生
2 文件
最后活跃于 1748997300
1 player $player,
2 $player at x #400 and y #300,
3 can update for $player.
4
5 update $id, player $id?:
6 , compute player $id velocity x
7 , @is-down key a, @is-down key d
8 , compute player $id velocity y
9 , @is-down key w, @is-down key s
10 .
mary's Avatar

mary / Treesitter Nova grammar

0 喜欢
0 派生
1 文件
最后活跃于 1748996129
note: untested as of 6/2/2025
1 /**
2 * @file Nova grammar
3 * @author nouveau
4 */
5
6 module.exports = grammar({
7 name: "nova",
8
9 rules: {
10 program: $ => repeat($.rule),
capitalex's Avatar

capitalex / map.nv

0 喜欢
0 派生
1 文件
最后活跃于 1748922000
1 ||
2 :: map :list: (1 2 3 4 5 6 7) :into: x
3 :with: x = x + 1
4 :with: x = x ^ 2
5 :with: x = x * 3
6
7 |:: map? :list: $x :into: $var?|
8 :@variables: set $var $x :@variables:
9 :: wait for @variables
10 :: apply operations
capitalex's Avatar

capitalex / fizzbuzz.nv

0 喜欢
0 派生
2 文件
最后活跃于 1748901835
1 || :: fizzbuzz :n: 1 :max: 100
2
3 |:: fizzbuzz :n: $n? :max: $m?|
4 :: as long as $n is not greater than $m :: then
5 :: $n is a multiple of 3 :: then
6 :: it's a fizz number
7 :: $n is a multiple of 5 :: then
8 :: it's a buzz number
9 :: end
10 :: else :: $n is a multiple of 5 :: then
sierra's Avatar

sierra / wordle.nv

0 喜欢
0 派生
1 文件
最后活跃于 1748897281
1 |:: check word :entered: ($1 $2 $3 $4 $5) |
2 :: next letter
3 :: check letter 1 $1
4 :: check letter 2 $2
5 :: check letter 3 $3
6 :: check letter 4 $4
7 :: check letter 5 $5
8 :: restore checked
9
10 |:: check letter $number $letter :target: $letter :currently checked: $any :current spot: $number |
capitalex's Avatar

capitalex / BaseLoader.gd

0 喜欢
0 派生
1 文件
最后活跃于 1748794558
1 extends Node
2 class_name BaseLoader
3
4 var items = {}
5
6 var TYPES := []
7 var RESOURCE_DIR := ""
8 var RECURSIVE := true
9 var _resources_to_load := []
capitalex's Avatar

capitalex / hello-world.inlang.nils.nv

0 喜欢
0 派生
1 文件
最后活跃于 1748752843
1 |:: documentation for NILS Form|
2 :@doc string:
3 "Nova In-Language Static Form is a possible structure for lowering
4 Nova code into a bytecode language describable in Nova. This is not
5 intended to be written by hand."
6
7 |:@data stack: reset? :@data seen: $stack $value|
8 :@data: $stack $value
9 |:@data stack: reset|
june's Avatar

june / A MIDI Sequencer

0 喜欢
0 派生
1 文件
最后活跃于 1748680786
This is a MIDI sequencer supporting variable-length channels.
1 |:@math: $x :@math: $op $y| :@math: $op $x $y
2
3 |:note: C | :note number: 0
4 |:note: C#| :note number: 1
5 |:note: Db| :note number: 1
6 |:note: D | :note number: 2
7 |:note: D#| :note number: 3
8 |:note: Eb| :note number: 3
9 |:note: E | :note number: 4
10 |:note: F | :note number: 5
capitalex's Avatar

capitalex / hello-world.nils.jets.nv

0 喜欢
0 派生
1 文件
最后活跃于 1748629027
1 |:: documentation for NILS Form|
2 :@doc string:
3 "Nova In-Language Static Form is a possible structure for lowering
4 Nova code into a bytecode language describable in Nova. This is not
5 intended to be written by hand."
6
7 |:: match $stack $arity :failed:?|
8 |:: match $stack $symbol|
9 :@jet:
10 "
capitalex's Avatar

capitalex / hello-world.nils.nv

0 喜欢
0 派生
1 文件
最后活跃于 1748624212
1 |:: documentation for NILS Form|
2 :@doc string:
3 "Nova In-Language Static Form is a possible structure for lowering
4 Nova code into a bytecode language describable in Nova. This is not
5 intended to be written by hand."
6
7 |:: match $stack $arity :failed:?|
8 |:: match @stdio.arity $arity :@stdio.arity: $arity| :@stdio.arity (r): $arity
9 |:: match @stdio.1 $1 :@stdio.1: $1| :@stdio.1 (r): $1
10 |:: match @stdio.2 $2 :@stdio.2: $2| :@stdio.2 (r): $2
上一页 下一页

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

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