All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login
's Avatar

capitalex

Joined 1 year ago

Recently created
Least recently created
Recently updated
Least recently updated
All gists 115 Forked 1
capitalex's Avatar

capitalex / nova-parser.lua

0 likes
0 forks
1 files
Last active 6 months ago
1 local pprint = require "pprint"
2 local None = {}
3 local whitespace = {
4 [' '] = true,
5 ['\n'] = true,
6 ['\r'] = true,
7 ['\t'] = true,
8 }
9 local yield, wrap = coroutine.yield, coroutine.wrap
capitalex's Avatar

capitalex / bitsy.nv

0 likes
0 forks
2 files
Last active 6 months ago
1 || :\: OH, btw, the text stuff assumes you have this font installed
2 :\: managore.itch.io/m3x6
3
4 |:: get color for .|
5 :color: 51 68 85
6 |:: get color for #|
7 :color: 255 187 51
8
9 |:: get sprite 1 for .|
10 :sprite data: (
capitalex's Avatar

capitalex / GoogleVoiceStreaming.cs

0 likes
0 forks
1 files
Last active 6 months ago
1
2 using Google.Apis.Auth.OAuth2;
3 using Google.Cloud.Speech.V1;
4 using Google.Protobuf.Collections;
5 using Grpc.Auth;
6 using System;
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.IO;
10 using System.Threading.Tasks;
capitalex's Avatar

capitalex / StoryEngine.cs

0 likes
0 forks
1 files
Last active 6 months ago
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4
5 [RequireComponent(typeof(AudioSource))]
6 public class StoryEngine : MonoBehaviour
7 {
8 public delegate void HandlePassage(StoryEngine engine, params Object[] args);
9 Dictionary<string, HandlePassage> callbacks = new Dictionary<string, HandlePassage>();
10 Dictionary<string, AudioClip> audioClips = new Dictionary<string, AudioClip>();
capitalex's Avatar

capitalex / IntroStory.cs

0 likes
0 forks
1 files
Last active 6 months ago
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 using UnityEngine.UI;
5
6
7 public class IntroStory : MonoBehaviour
8 {
9
10 Dictionary<string, AudioClip> audioClips = new Dictionary<string, AudioClip>();
capitalex's Avatar

capitalex / Select snippets from Chitinous Carnival

0 likes
0 forks
7 files
Last active 6 months ago
A collection of files I consider to be at the "core" of CC
1 # warning-ignore-all:return_value_discarded
2 extends HBoxContainer
3 class_name ChitinousCanrival
4
5 const event_player_scene = preload("res://scenes/ui/EventPlayer.tscn")
6
7 @onready var MinigameHandler := %MinigameHandler as MinigameHandler
8 @onready var TravelButtons := %TravelButtons as TravelButtons
9 @onready var EventPlayerContainer := %EventPlayerContainer as EventPlayerContainer
10 @onready var InventoryMenu := %InventoryMenu as InventoryMenu
capitalex's Avatar

capitalex / shunting-yard.nv

0 likes
0 forks
1 files
Last active 6 months ago
1 |:eval: * $x $y| :@math: multiply $x $y
2 |:eval: / $x $y| :@math: divide $x $y
3 |:eval: + $x $y| :@math: add $x $y
4 |:eval: - $x $y| :@math: subtract $x $y
5
6 |:precedence: *| :precedence: * 2
7 |:precedence: /| :precedence: / 2
8 |:precedence: +| :precedence: + 1
9 |:precedence: -| :precedence: - 1
10 |:precedence: $x| :not an operator:
capitalex's Avatar

capitalex / maze-array-polyfill.nv

0 likes
0 forks
1 files
Last active 6 months ago
1 = |@math| $last |@math| $op $value * =
2 |@math| $op $value $last
3 = |@math| $last |@math| $op * $value =
4 |@math| $op $last $value
5
6
7 = |@ array| flush cells? |cells array direction| forwards? |forwards cells| $value =
8 |backwards cells| $value
9
10 = |@ array| flush cells? |cells array direction| forwards? |forwards cells| =
capitalex's Avatar

capitalex / maze-with-arrays.nv

0 likes
1 forks
2 files
Last active 6 months ago
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
capitalex's Avatar

capitalex / maze.nv

0 likes
0 forks
1 files
Last active 6 months ago
1 = || jump pen x |pen position| $oldx $y |@math| $x =
2 |pen position| $x $y
3
4 = || jump pen y |pen position| $x $oldy |@math| $y =
5 |pen position| $x $y
6
7 = || jump |backtrack| $row $col =
8 |@math| multiply $col 2
9 |@math| multiply $row 2
10 || jump pen x || jump pen y
Newer Older

Powered by Opengist ⋅ Load: 231ms⋅

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