Skip to content

Instantly share code, notes, and snippets.

@fnky
fnky / ANSI.md
Last active July 24, 2024 02:06
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@SpeedOfSpin
SpeedOfSpin / gist:510897268803ca9ced2c7f8aaadef109
Created January 8, 2018 15:59
setTimeout equivalent in C#
var cancellationTokenSource = new CancellationTokenSource();
var cancellationToken = cancellationTokenSource.Token;
Task.Delay(2000).ContinueWith(async (t) =>
{
//Do stuff
}, cancellationToken);