Skip to content

Instantly share code, notes, and snippets.

View rafaelrcamargo's full-sized avatar
🦀
Borrow checking

rafael r. camargo rafaelrcamargo

🦀
Borrow checking
View GitHub Profile
@rafaelrcamargo
rafaelrcamargo / minimal.json
Last active March 18, 2025 22:05
My straightforward iteration on a simple, muted, yet informative Zed theme
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"author": "rafaelrcamargo",
"name": "Minimal",
"themes": [
{
"appearance": "dark",
"name": "Minimal Dark",
"style": {
// Base colors
pub fn is_balanced(s: &str) -> bool {
let mut stack = Vec::new();
for c in s.chars() {
match c {
'(' | '[' | '{' => stack.push(c),
symbol @ (')' | ']' | '}') if stack.pop() != reverse(symbol) => return false,
_ => (),
}
}
@rafaelrcamargo
rafaelrcamargo / ANSI.md
Created September 30, 2023 03:29 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27