全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

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

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

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

topic:homelab 具有给定主题的 Gists

注册

登录


全部 新建 注册 登录

所有 Gists

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

june / progress-pride-flag.nv

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago • 派生自 sierra/progress-pride-flag.nv
1 ||
2 :: create a 400 by 400 canvas
3 :: draw the trans pride flag
4
5 |:: draw the trans pride flag|
6 :: clear the canvas to black
7 :: draw a 360 by 360 lightblue rectangle at 20 20
8 :: draw a 360 by 250 pink rectangle at 20 80
9 :: draw a 360 by 100 white rectangle at 20 150
10 :: draw a black triangle at 20 20 20 380 200 200
autumn's Avatar

autumn / snake game

0 喜欢
0 派生
1 文件
最后活跃于 5 months ago
a snake game that runs on the Myte playground !
1 | 'INSTRUCTIONS' | ~~
2 you can move using the WASD keys !
3
4 || '@include' (
5 https://gist.casuallyblue.dev/autumn/056799f483464c668e0a6a2d9db099df/raw/HEAD/game.nv
6 https://gist.casuallyblue.dev/autumn/e1c6774f800249be87a94240042135db/raw/HEAD/reduce.nv
7 )
8
9 'DOM' (<query h2 <style text-align = center > >)
sierra's Avatar

sierra / progress-pride-flag.nv

0 喜欢
1 派生
1 文件
最后活跃于 5 months ago
1 ||
2 :: create a 400 by 400 canvas
3 :: draw the trans pride flag
4
5 |:: draw the trans pride flag|
6 :: clear the canvas to black
7 :: draw a 360 by 360 lightblue rectangle at 20 20
8 :: draw a 360 by 250 pink rectangle at 20 80
9 :: draw a 360 by 100 white rectangle at 20 150
10 :: draw a black triangle at 20 20 20 380 200 200
yumaikas's Avatar

yumaikas / playground-safe-cake.nv

0 喜欢
0 派生
1 文件
最后活跃于 6 months ago
1 |:: To $make $some $recipe| :recipe: $make $some $recipe
2
3 |:: Search the pantry for $ingredient :pantry: $ingredient|
4 :: Place $ingredient on the countertop
5
6 |:: Search the pantry for $ingredient :pantry: $someOtherIngredient|
7 :: Set $someOtherIngredient aside
8 :: Search the pantry for $ingredient
9
10 |:: Search the pantry for $ingredient :recipe: $make $some $recipe?|
capitalex's Avatar

capitalex / queue.ml

0 喜欢
0 派生
1 文件
最后活跃于 6 months ago
1 (* Chris Okasaki
2 School of Computer Science
3 Carnegie Mellon University
4 Pittsburgh, PA 15213
5 cokasaki@cs.cmu.edu *)
6
7 functor HoodMelvilleQueue () : QUEUE =
8 (* Alternative implementation of queues with O(1) worst-case *)
9 (* performance. Provided for comparison. *)
10 (* *)
capitalex's Avatar

capitalex / rpn.lua

0 喜欢
0 派生
2 文件
最后活跃于 6 months ago
1 local function rpn_caculator()
2 local char = io.read(1)
3 local acc, op = nil, {}
4 local data_stack = {}
5 while char do
6 if char:match("%s") then
7 if #op ~= 0 then
8 local op_to_eval = table.concat(op)
9 op = {}
10 if op_to_eval == "+" then
capitalex's Avatar

capitalex / zombies.mira

0 喜欢
0 派生
2 文件
最后活跃于 6 months ago
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 文件
最后活跃于 6 months ago
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 文件
最后活跃于 6 months ago
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 文件
最后活跃于 6 months ago
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
上一页 下一页

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

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