全部 新建

user:thomas 由用户创建的 Gists

title:mygist 包含指定标题的 Gists

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

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

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

topic:homelab 具有给定主题的 Gists

注册

登录


全部 新建 注册 登录

所有 Gists

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

sierra / rgb-assembly.nv

0 喜欢
0 派生
1 文件
最后活跃于 1732229695 • 派生自 june/rgb-assembly.nv
1 ||start
2 |start| 1
3
4 |ld x 128, x| ld x 128
5 |ld x 128 | x:128
6 |ld y 128, y| ld y 128
7 |ld y 128 | y:128
8
9 |jz x eol, 4, x| x, 4
10 |jz x eol, 4 | eol
capitalex's Avatar

capitalex / fizzbuzz.poqs

0 喜欢
0 派生
1 文件
最后活跃于 1731377554
1 : {run fizzbuzz from $x to $y} >
2 {current number is $x} {run fizzbuzz to $y} :
3
4 : {run fizzbuzz to $n} {current number is $n} >
5 {fizz $n} {buzz $n} {number is $n} :
6
7 : {run fizzbuzz to $stop-value} {current number is $n} >
8 {run fizzbuzz to $stop-value}
9 {next number from $n} {fizz $n} {buzz $n} {number is $n} {wrote ""} :
capitalex's Avatar

capitalex / averages.poqs

0 喜欢
0 派生
1 文件
最后活跃于 1731295467
1 We've collected the following data points --
2 - {data point of #4}
3 - {data point of #1}
4 - {data point of #7}
5 - {data point of #8}
6 - {data point of #1}
7
8 Let's find the average of these values. We've got a tally running, we
9 should continue accumulating values --
capitalex's Avatar

capitalex / simple_state.gd

0 喜欢
0 派生
1 文件
最后活跃于 1730862465
1 extends Node
2 class_name _SimpleState
3
4 signal state_changed(name, state)
5
6 var state := { }
7
8
9 func register(state_name: String, inital_state: Dictionary = {}) -> void:
10 state[state_name] = inital_state
capitalex's Avatar

capitalex / move-a.nv

0 喜欢
0 派生
2 文件
最后活跃于 1730849890
1 initial-state:
2 set #1 &move
3 set #1 &a:1000000
4
5 search:
6 rule-1:
7 jez &move %rule-2
8 jez &a %rule-2
9 jez &a %rule-2
10
sierra's Avatar

sierra / curses.nv

0 喜欢
0 派生
1 文件
最后活跃于 1730781428
1 |#| constant, @char-x, 5
2 |#| constant, @char-y, 5
3 |#| constant, @char, 64
4
5 | run the program |
6 start ncurses,
7 draw the player,
8 read a character,
9 clean up ncurses,
june's Avatar

june / Drawing a triangle.

0 喜欢
0 派生
2 文件
最后活跃于 1730661975
A demonstration of a line drawing port.
1 |#|start exhaustive
2 |#|constant, @resolution-x, 800
3 |#|constant, @resolution-y, 600
4 ||start
5 |start|
6 @resolution-x:800,
7 @resolution-y:600,
8 set the window resolution,
9 main loop
10 |set the window resolution| @set-resolution
sierra's Avatar

sierra / rgb400_ungolfed

0 喜欢
0 派生
1 文件
最后活跃于 1730513051
1 |--| Are we at the end of a line?
2 |end of line?, x| x, ~end of line
3 |end of line?| end of line
4
5 |--| Are we at the end of the screen?
6 |end of screen?, y| y, ~end of screen
7 |end of screen?| end of screen
8
9 |--| Copy the pixel coordinates from `x/y` to `@pixel-x/@pixel-y`.
10 |pixel_x=x, x|*x, @pixel-x, pixel_x=x
sierra's Avatar

sierra / rgb400.nv

0 喜欢
0 派生
1 文件
最后活跃于 1730503328
1 |--| Are we at the end of a line?
2 |eol?,x|x,~eol|eol?|eol
3
4 |--| Are we at the end of the screen?
5 |eos?,y|y,~eos|eos?|eos
6
7 |--| Copy the pixel coordinates from `x/y` to `@pixel-x/@pixel-y`.
8 |px=x,x|*x,@pixel-x,px=x
9 |px=x|
10 |py=y,y|*y,@pixel-y,py=y
sierra's Avatar

sierra / rgb2.nv

0 喜欢
0 派生
1 文件
最后活跃于 1730501310
1 |--| Are we at the end of a line?
2 |eol?,x|x,~eol|eol?|eol
3
4 |--| Are we at the end of the screen?
5 |eos?,y|y,~eos|eos?|eos
6
7 |--| Copy the pixel coordinates from `x/y` to `@pixel-x/@pixel-y`.
8 |px=x,x|*x,@pixel-x,px=x
9 |px=x|
10 |py=y,y|*y,@pixel-y,py=y
上一页 下一页

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

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