+++ title = "title" date = 2022-06-02 description = "A gist test"
[taxonomies] tags = [ "tag1", "tag2" ] projects = [ "project1" ] +++
public class CompletionTree | |
{ | |
public string TriggerWord { get; set; } | |
public string[] Aliases { get; set; } | |
public List<CompletionTree> Completions { get; private set; } | |
public CompletionTree(string word, string[] aliases) | |
{ | |
TriggerWord = word; |
public readonly record struct CheckedTreeNode : ITreeNode | |
{ | |
public ConsoleColor BackColor { get; init; } | |
public ConsoleColor ForeColor { get; init; } | |
public bool IsChecked { get; init; } | |
public string Text { get; init; } | |
public List<ITreeNode> Children { get; init; } | |
public CheckedTreeNode(string text, bool isChecked) |
use std::{io, cmp::Ordering}; | |
use rand::{Rng, thread_rng}; | |
const NUM_GUESSES: i32 = 5; | |
const MIN: i32 = 0; | |
const MAX: i32 = 100; | |
fn main() { | |
start_game(); |
+++ title = "title" date = 2022-06-02 description = "A gist test"
[taxonomies] tags = [ "tag1", "tag2" ] projects = [ "project1" ] +++
using System; | |
using System.Runtime.InteropServices; | |
using ImGuiNET; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Input; | |
using Vector2 = ImGuiNET.Vector2; | |
using Vector3 = ImGuiNET.Vector3; | |
using Vector4 = ImGuiNET.Vector4; |