Skip to content

Instantly share code, notes, and snippets.

View moolicc's full-sized avatar
🤠
Howdy!

Joel moolicc

🤠
Howdy!
View GitHub Profile
@moolicc
moolicc / CompletionTree.cs
Created July 24, 2022 20:04
Console input helper. Includes completion, colored prompts, and colored keywords.
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;
@moolicc
moolicc / CheckedTreeNode.cs
Last active July 24, 2022 20:05
Console Tree Display
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)
@moolicc
moolicc / number_guess.rs
Last active June 6, 2022 21:03
rust scratchpad
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();
@moolicc
moolicc / posts.md
Last active June 20, 2022 04:20
posts

+++ title = "title" date = 2022-06-02 description = "A gist test"

[taxonomies] tags = [ "tag1", "tag2" ] projects = [ "project1" ] +++

@moolicc
moolicc / Game1.cs
Last active January 8, 2019 15:28 — forked from Jjagg/Game1.cs
MonoGame backend sample for ImGui.NET (https://github.com/mellinoe/ImGui.NET)
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;