Skip to content

Instantly share code, notes, and snippets.

@jim-ec
jim-ec / config.nu
Created June 1, 2025 08:55
NuShell Config
use std/util 'path add'
path add /opt/homebrew/bin
path add ~/.cargo/bin
path add ~/bin
path add ~/.deno/bin
path add /usr/local/bin
$env.config.buffer_editor = 'hx'
@jim-ec
jim-ec / settings.json
Last active June 1, 2025 08:51
Zed Settings
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `zed: Open Default Settings` command
// from the command palette
{
"minimap": {
@jim-ec
jim-ec / git-cheatsheet.md
Created June 21, 2023 10:31
Git Cheatsheet

Git Cheatsheet

Configuration

[core]
    editor = nvim
    autocrlf = input
    ignorecase = false
[pull]
@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: ¬ ∧ ∨ ⊻ ⊼ ⊽ ⋀ ⋁ ⟵ ⟶ ⟷