Skip to content

Instantly share code, notes, and snippets.

View jim-ec's full-sized avatar

Jim Eckerlein jim-ec

View GitHub Profile
@jim-ec
jim-ec / terminal-colors.md
Last active June 21, 2023 10:37
Terminal Colors

Normal

\033[0m / \u{001B}[0m

Regular Colors

  • Black: \033[0;30m
  • Red: \033[0;31m
  • Green: \033[0;32m
  • Yellow: \033[0;33m
@jim-ec
jim-ec / lldb-commands.md
Last active June 21, 2023 10:37
LLDB Commands.md

LLDB Commands

  • Launch process: r <args>
  • Quit process: q
  • Step in: s
  • Step next: n
  • Step out: finish
  • Break at function main: b main
  • Break at method main: br s -M main
  • Break in foo.cpp at line 42: b foo.cpp:42 or br s -f main.c -l 42
@jim-ec
jim-ec / minimal-cocoa-example.md
Last active June 21, 2023 10:38
Minimal Cocoa Example

Minimal Cocoa Sample

main.m

#import <Cocoa/Cocoa.h>

int main ()
{
    [NSAutoreleasePool new];
@jim-ec
jim-ec / calling_switch_from_cpp.md
Last active June 21, 2023 10:38
Calling Swift from C++

Calling Swift from C++

foo.swift

@_cdecl("foo")
public func foo(x: Int) -> Int {
    x * x
}
@jim-ec
jim-ec / unicode-symbols.md
Last active June 21, 2023 10:39
Unicode Symbols

Common Unicode runes

Mathematical

  • Greek: α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ ς τ υ φ χ ψ ω
  • Super: ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ⁿ ⁱ
  • Sub: ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎ ₐ ₑ ₕ ᵢ ⱼ ₖ ₗ ₘ ₙ ₒ ₚ ᵣ ₛ ₜ ᵤ ᵥ ₓ ₔ
  • Roots: √ ∛ ∜
  • Sets: ℕ ℤ ℚ ℝ ℂ
  • Logic: ¬ ∧ ∨ ⊻ ⊼ ⊽ ⋀ ⋁ ⟵ ⟶ ⟷