Skip to content

Instantly share code, notes, and snippets.

View Ayidana-Aboraah's full-sized avatar
💭
Almost always free

Ayidana Ayidana-Aboraah

💭
Almost always free
  • Richmond, Virginia
View GitHub Profile
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active May 5, 2026 18:47
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@alichraghi
alichraghi / zig-tcp.zig
Created September 10, 2021 11:11
Zig TCP Server
const std = @import("std");
const net = std.net;
const StreamServer = net.StreamServer;
const Options = StreamServer.Options;
const Address = net.Address;
pub fn main() anyerror!void {
const address = Address.initIp4([4]u8{ 127, 0, 0, 1 }, 8080);
var stream = StreamServer.init(Options{ .reuse_address = true });
defer stream.deinit();
@fnky
fnky / ANSI.md
Last active May 6, 2026 23:57
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@josephg
josephg / README.md
Last active June 7, 2024 09:37
Getting Zig compiling to WASM

In case anyone else wants to play with Zig on webassembly, here's what you need to do to make it work on a mac today.

1. Get LLVM 7 compiled with webassembly support.

You'll need LLVM to output to the WASM target. This has just been added by default in trunk, so if LLVM >7 is available, you might be able to just brew install llvm.

If you have wasm support already you should see:

$ llc --version