Skip to content

Instantly share code, notes, and snippets.

View AlexHedley's full-sized avatar
💭
⚀⚁⚂⚃⚄⚅

Alex Hedley AlexHedley

💭
⚀⚁⚂⚃⚄⚅
View GitHub Profile
@AlexHedley
AlexHedley / TypeWriter.cs
Created August 31, 2024 18:53 — forked from patriksvensson/TypeWriter.cs
Spectre.Console typewriter
using Spectre.Console;
using Spectre.Console.Rendering;
var renderable = new Markup("[yellow]H[/]ello [blue]W[/]orld");
foreach (var segment in SplitSegments(renderable))
{
AnsiConsole.Write(new SegmentRenderable(segment));
Thread.Sleep(Random.Shared.Next(100, 500));
}
@AlexHedley
AlexHedley / MinimalOoui.cs
Created June 9, 2021 09:22 — forked from praeclarum/MinimalOoui.cs
Minimal Ooui application
using System;
using Ooui;
namespace MinimalOoui
{
class Program
{
static Element CreateUI()
{
@AlexHedley
AlexHedley / Script_Template.ps1
Created December 24, 2017 13:24 — forked from 9to5IT/Script_Template.ps1
PowerShell: Script Template
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
@AlexHedley
AlexHedley / UIAlertController+Utilities.h
Last active May 19, 2017 09:46 — forked from valvoline/UIAlertController+Utilities.h
Simple category that wraps around the UIAlertController annoying stuff
//
// UIAlertController+Utilities.h
//
// Created by valvoline on 18/12/14.
// Copyright (c) 2014 sofapps. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIAlertController (Utilities)
@AlexHedley
AlexHedley / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console