Skip to content

Instantly share code, notes, and snippets.

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

Alex Hedley AlexHedley

💭
⚀⚁⚂⚃⚄⚅
View GitHub Profile
- https://timkraeuter.com/rust-bpmn-analyzer/
@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 / CommandPorts.md
Created August 14, 2024 11:40
Command Ports

This absurd "one-liner" will show you the name of the command running on each port on MacOS, which is something I need to do constantly so leaving it here:

sudo lsof -iTCP -sTCP:LISTEN -n -P | awk 'NR>1 {print $9, $1, $2}' | sed 's/.*://' | while read port process pid; do echo "Port $port: $(ps -p $pid -o command= | sed 's/^-//') (PID: $pid)"; done | sort -n
.container { display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 0.7fr 0.7fr 0.5fr;
grid-auto-columns: 1fr;
grid-auto-rows: 1fr;
gap: 0px 0px;
grid-auto-flow: row;
grid-template-areas:
"ProfilePic Card1 Card2 PotOdds"
"ProfilePic Name Name Name"

Test Results - My Tests

Expand the following summaries for more details:

Duration: 0.6163435 seconds

| Times | |

Test Results - Poker API Tests

Expand the following summaries for more details:

Duration: 0.7207862 seconds

| Times | |

Test Results - Blashing Core Tests

Expand the following summaries for more details:

Duration: 1.7518883 seconds

| Times | |

Test Results - My Tests

Expand the following summaries for more details:

Duration: 1.3488762 seconds

| Times | |

@AlexHedley
AlexHedley / grid.html
Created November 2, 2022 23:23
Grid Examples
<!doctype html>
<title>Example</title>
<style>
.grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 20px;
align-items: stretch;
justify-items: center;
}