Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab gists with given topic

Registrati

Entra


Tutti Nuovi Registrati Entra

Tutti i gists

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento
autumn's Avatar

autumn / game library

0 mi piace
0 forks
1 files
Ultima volta attivo 11 months ago
a library for the Myte playground that lets you easily create games
1 | 'DOCUMENTATION' | ~~
2 this game library lets you create a canvas that you can
3 update every frame . you can start a game like so :
4
5 // '' start a 400 by 600 game
6
7 and you can create a game loop that updates like this :
8
9 / '' game loop $dt
10 / '' do something
autumn's Avatar

autumn / @reduce math library

0 mi piace
0 forks
1 files
Ultima volta attivo 11 months ago
a library for the Myte playground that allows you to reduce RPN expressions from within tuples
1 | 'DOCUMENTATION' | ~~
2 the @reduce library allows you to reduce RPN expressions
3 that are enclosed within curly braces inside of a tuple .
4 here's an example of how to use it :
5
6 '' (@reduce snake = x is { 2 3 + 4 * } and y is { 10 7 - } .)
7
8 this will result in the following :
9
10 'snake' x is 20 and y is 3
sierra's Avatar

sierra / maze-with-arrays.nv

0 mi piace
0 forks
2 files
Ultima volta attivo 11 months ago • Forkato da capitalex/maze-with-arrays.nv
1 = |@math| $last |@math| $op $value * =
2 |@math| $op $value $last
3 = |@math| $last |@math| $op * $value =
4 |@math| $op $last $value
5
6 = || set new pen color? |pen color| r $g $b |@math| $r =
7 |pen color| $r $g $b
8
9 = || set new pen color? |pen color| $r g $b |@math| $g =
10 |pen color| $r $g $b
june's Avatar

june / progress-pride-flag.nv

0 mi piace
0 forks
1 files
Ultima volta attivo 11 months ago • Forkato da 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 mi piace
0 forks
1 files
Ultima volta attivo 11 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 mi piace
1 forks
1 files
Ultima volta attivo 11 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 mi piace
0 forks
1 files
Ultima volta attivo 1 year 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 mi piace
0 forks
1 files
Ultima volta attivo 1 year 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 mi piace
0 forks
2 files
Ultima volta attivo 1 year 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 mi piace
0 forks
2 files
Ultima volta attivo 1 year 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 .
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 304ms⋅

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