全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

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

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

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

topic:homelab 具有给定主题的 Gists

注册

登录


全部 新建 注册 登录

所有 Gists

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

sierra / wordle.nv

0 喜欢
0 派生
1 文件
最后活跃于 6 months ago
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 文件
最后活跃于 6 months ago
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 文件
最后活跃于 6 months ago
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 文件
最后活跃于 6 months ago
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 文件
最后活跃于 6 months ago
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 文件
最后活跃于 6 months ago
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
capitalex's Avatar

capitalex / nova-parser.nv

0 喜欢
0 派生
1 文件
最后活跃于 6 months ago
1 |:: parse nova|
2 :: normalize whitespace
3 :: parse the container format
4 :: parse the label format
5 :: parse patterns
6
7 |:: normalize whitespace? :src: 9| :processed: 32
8 |:: normalize whitespace? :src: 10| :processed: 32
9 |:: normalize whitespace? :src: 13| :processed: 32
10 |:: normalize whitespace? :src: 32| :processed: 32
capitalex's Avatar

capitalex / bottles-of-beer.nv

0 喜欢
0 派生
3 文件
最后活跃于 6 months ago
1 || :keyword for 'if': say
2 :keyword for 'else': otherwise-say
3
4 || :: 99 bottles of beer
5
6 |:: $n bottles of beer|
7 :: $n bottles of beer on the wall!
8 :: $n bottles of beer!
9 :: You take one down, pass it around!
10 :: when $n is 1 :: say
sierra's Avatar

sierra / moonfall-todos.nv

0 喜欢
0 派生
2 文件
最后活跃于 6 months ago
1 | |
2 :todo: ([ ] high priority)
3 :todo: "Logging levels"
4
5 :todo: ([ ] mid priority)
6 :todo: "Typo spotting tools"
7
8 :todo: ([ ] mid priority)
9 :todo: "Interactive debugging tools"
capitalex's Avatar

capitalex / multiset-fib.modal

0 喜欢
0 派生
1 文件
最后活跃于 6 months ago
1 <> (tally ?v (Bag ?l)) ((Bag tallying| tallying> ?v ?l))
2
3 <> (tallying> ?v ())
4 (<tallying ((Entry ?v 1) ()))
5
6 <> (tallying> ?v ((Entry ?v ?c) ?r))
7 (<tallying ((Entry ?v ?((?: ?0 ?1) ?:) + ?c 1) ?r))
8
9 <> (tallying> ?v (?e ?r))
10 ((?e tallying> ?v ?r))
上一页 下一页

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

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