Skip to content

Instantly share code, notes, and snippets.

View AMCN41R's full-sized avatar
Drinking coffee

Alex McNair AMCN41R

Drinking coffee
View GitHub Profile
@ashcox
ashcox / Door.cs
Last active June 20, 2018 12:59
This door is not in use conumdrum
public class Door {
public Door(bool closed, bool hasNotInUseSign) {
this.InUse = closed;
this.HasNotInUseSign = hasNotInUseSign;
}
public State State => this.GetState();
private State GetState() {
if (InUse && !HasNotInUseSign) {
@Fireforge
Fireforge / runtask.ps1
Last active October 17, 2023 10:55
powershell task runner
# A simple task runner implemented in Powershell
Param(
[String]$TaskName, # The name of the task to run
[parameter(ValueFromRemainingArguments=$true)][String[]]$TaskArgs # The list of repos to run the task on
)
# Define the tasks
$tasks = @{}