Wszystko Nowy

user:thomas Gisty stworzone przez użytkownika

title:mygist Gisty z podanym tytułem

filename:myfile.txt Gisty zawierające pliki z podanym tytułem

extension:yml Gisty zawierające pliki z podanym rozszerzeniem

language:go Gisty zawierające pliki z podanym językiem

topic:homelab gists with given topic

Zarejestruj się

Zaloguj się


Wszystko Nowy Zarejestruj się Zaloguj się
's Avatar

capitalex

Dołączono 2 years ago

Ostatnio utworzono
Najdawniej utworzono
Ostatnio zaktualizowano
Najdawniej zaktualizowano
Wszystkie Gisty 147 Zforkowane 1
capitalex's Avatar

capitalex / snarl.factor

0 polubień
0 forków
1 plików
Ostatnio aktywne 4 months ago
1 ! Copyright (C) 2026 CapitalEx
2 ! This mine and only mine all rights reserved >:3c
3 USING: accessors assocs assocs.extras combinators
4 combinators.short-circuit command-line continuations debugger
5 html.elements io io.directories io.encodings.utf8 io.files
6 io.files.info io.pathnames io.streams.string kernel literals
7 namespaces sbufs sequences sequences.deep sets sorting splitting
8 strings unicode xml xml.data xml.state xml.traversal xml.writer
9 ;
10 FROM: namespaces => set ;
capitalex's Avatar

capitalex / progress.gd

0 polubień
0 forków
2 plików
Ostatnio aktywne 5 months ago
1 extends RefCounted
2
3 var state = { "foo": ["foo", "bar", "baz", "quux"], "bar": ["quux", "baz", "bar", "foo"] }
4
5 func push(stack_symbol, symbol) -> void:
6 state[stack_symbol].push_back(symbol)
7
8 func peek(stack_symbol, depth : int, symbol) -> bool:
9 var stack = state[stack_symbol]
10 if not stack: return false
capitalex's Avatar

capitalex / Typing Game?

0 polubień
0 forków
1 plików
Ostatnio aktywne 5 months ago
Some kind of typing game in LÖVE
game love2d
1 score = 0
2 timer = 30
3 letter = string.char(math.random(97, 122))
4 font = love.graphics.newFont(48)
5 gameover = false
6 love.graphics.setFont(font)
7
8 function love.update(dt)
9 timer = timer - dt
10 if timer <= 0 then
capitalex's Avatar

capitalex / Lights Out

0 polubień
0 forków
1 plików
Ostatnio aktywne 5 months ago
A small lights out game written for LOVE. It doesn't check win states tho.
game love2d
1 local size = 100
2 local offsetH, offsetW = love.graphics.getHeight() / 2 - 250, love.graphics.getWidth() / 2 - 250
3
4 local grid = {
5 {false, false, false, false, false},
6 {false, false, false, false, false},
7 {false, false, false, false, false},
8 {false, false, false, false, false},
9 {false, false, false, false, false},
10 }
capitalex's Avatar

capitalex / prefix-stack.lua

0 polubień
0 forków
2 plików
Ostatnio aktywne 5 months ago
1 local Object = require "object"
2
3
4 --[[
5 Prefix Tree Stack preserves the insertion order
6 of the items being added. This can create duplicate
7 branches when a normal prefix tree wouldn't have it
8
9 Insertion Operations:
10 insert apple
capitalex's Avatar

capitalex / stackthingl.txt

0 polubień
0 forków
1 plików
Ostatnio aktywne 7 months ago
1 $ x 0
2 $ y 1
3
4 : magnitude
5 @x @x * @y @y * + sqrt ;
6
7 3 >x 4 >y
capitalex's Avatar

capitalex / gistfile1.txt

0 polubień
0 forków
1 plików
Ostatnio aktywne 8 months ago
1 [ -- if 1
2 [] -- pop next bit
3 0101 -- duplicate encoded 1
4 0 -- cancel next block
5 0 -- cancel this block
6 ]
7 [ -- if 1
8 1010 -- duplicate encoded 0
9 0 -- cancel this loop
10 ]
capitalex's Avatar

capitalex / bits.txt

0 polubień
0 forków
1 plików
Ostatnio aktywne 8 months ago
1 $ echo "1[>1<[>[0]<00>0<0]>[<1>1>0]<]>>>>[0111100]1[1<]0>>>>>>>[10010]1[1<]0" | ./bits.py -
2 █
3 ░
4 █ █
5 █ █
6 █ ░
7 █ ░
8 ░███░███████████████████████████
9 ^-------------------------------
capitalex's Avatar

capitalex / functions.wont

0 polubień
0 forków
2 plików
Ostatnio aktywne 8 months ago
1 call isnt less than 1, call isnt greater than 2, ...
2 wont return, wont jump, ..., cant jump here.
3 wont return, wont jump, ..., cant jump here.
4 wont jump, ..., cant jump here.
5
6 call isnt less than 2, call isnt greater than 10, ...
7 wont return, wont jump, ..., cant jump here.
8 wont return, wont jump, ..., cant jump here.
9 wont jump, ..., cant jump here.
capitalex's Avatar

capitalex / peom.dont

0 polubień
0 forków
2 plików
Ostatnio aktywne 8 months ago
1 have what is DOESNT? ;
2
3 give DOESNT is an esolang
4 unless DOESNT , is , an , esolang
5 , a , rewriting , system
6 , that , which , what is left !! , not , taken
7 , where , everything , backwards
8 , it , left , untaken , DOESNT. ;
9
10 give a rewriting system
Nowsze Starsze

Obsługiwane przez Opengist ⋅ Load: 207ms⋅

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