This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - https://timkraeuter.com/rust-bpmn-analyzer/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)); | |
| } |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <title>Example</title> | |
| <style> | |
| .grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr 1fr; | |
| grid-gap: 20px; | |
| align-items: stretch; | |
| justify-items: center; | |
| } |