Все Новый

user:thomas фрагментов создано пользователем

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

Регистрация

Войти


Все Новый Регистрация Войти

Все фрагменты

Свежие сверху по дате создания
Свежие снизу по дате создания
Свежие сверху по дате обновления
Свежие снизу по дате обновления
capitalex's Avatar

capitalex / bitsy.nv

0 лайк(-ов)
0 форк(-ов)
2 файл(-ов)
Последняя активность 11 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 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 11 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 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 11 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 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 11 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 лайк(-ов)
0 форк(-ов)
7 файл(-ов)
Последняя активность 11 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 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 11 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 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 11 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 лайк(-ов)
1 форк(-ов)
2 файл(-ов)
Последняя активность 11 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 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 11 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
capitalex's Avatar

capitalex / rewrite.idris

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 11 months ago
1 rewrite : (default : List String) ->
2 (apples : List String) ->
3 (oranges : List String) ->
4 (cherries : List String) ->
5 (fruit_salad : List String) ->
6 (bowl : List String) ->
7 List (List String)
8
9 rewrite default ([] :: apples) ([] :: oranges) ([] :: cherries) fruit_salad bowl =
10 rewrite default apples oranges cherries ([] :: fruitSalad) bowl
Новее Позже

Работает на Opengist ⋅ Load: 271ms⋅

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