Skip to content

Instantly share code, notes, and snippets.

View RobertBouillon's full-sized avatar

Robert Bouillon RobertBouillon

View GitHub Profile
@RobertBouillon
RobertBouillon / ShellController.cs
Created December 6, 2021 03:22
Chromely Dialogs
using Chromely.Core.Network;
using System;
using System.Threading;
using USS.Tempus.Shell;
namespace TempusChromely
{
[ControllerProperty(Name = "Shell")]
public class ShellController : ChromelyController
{
@RobertBouillon
RobertBouillon / StartListReport.cs
Created December 5, 2021 23:23
Start List Report
using Newtonsoft.Json;
using Spin.Pillars.FileSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using USS.Tempus.Formats.Progression;
namespace USS.Tempus.Reports
{
@RobertBouillon
RobertBouillon / shell.cs
Created December 3, 2021 19:26
Chromely Shell
using Microsoft.JSInterop;
using Spin.Pillars.FileSystem;
using System;
using System.Threading.Tasks;
namespace USS.Tempus.Shell
{
public record DialogResponse(bool Cancel, string Value);
public interface IShell
@RobertBouillon
RobertBouillon / BrowserStorage.cs
Created November 24, 2020 23:01
Blazor dictionary implementation of Local Storage
using Microsoft.JSInterop;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
namespace Spin.Blazor
{
public class BrowserStorage : IDictionary<string, string>
{
@RobertBouillon
RobertBouillon / mclinux.sh
Created April 6, 2020 17:47
Linux heler scripts for MC
robear@MinecraftServer:/etc/profile.d$ cat games.sh
function ark(){
/home/robear/ark.sh
}
function ftb(){
/home/robear/ftb.sh
}
robear@MinecraftServer:/etc/profile.d$ cat ~/ftb.sh
#! /bin/bash
@RobertBouillon
RobertBouillon / Workers.cs
Created December 14, 2019 14:51
C# Worker Model
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Diagnostics;
namespace System.Threading
{
public abstract class Worker : System.Threading.Workers.IWorker
@RobertBouillon
RobertBouillon / Map.cs
Last active December 3, 2019 15:48
2D Map Generator C#
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Texture = System.Object;
namespace Core3Sandbox
{
@RobertBouillon
RobertBouillon / test.cs
Last active September 15, 2018 11:51
.NET Delegate Invocation Performance Test
/*
RESULTS ON 7960X
CORE 2.1
Call 00:00:02.3531091
Invoke 00:00:02.3209331
Targeted 00:00:02.3206009
Targeted Invoke 00:00:02.3417757
FRAMEWORK 4.7.2
Call 00:00:02.3320065
class Car { }
class Ford : Car { }
interface ITest
{
Car Foo();
}
class Covariance : ITest
{
@RobertBouillon
RobertBouillon / CsCodeBuilder.cs
Created March 12, 2018 19:51
CS Code Gen Class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace System.CodeDom
{
public class CsCodeBuilder
{