Skip to content

Instantly share code, notes, and snippets.

View guidoschmidt's full-sized avatar
✌️
🌋🦎🧅

Guido Schmidt guidoschmidt

✌️
🌋🦎🧅
View GitHub Profile

Zed Vim Mode Cheat Sheet

Zed's Vim mode replicates familiar Vim behavior while integrating modern features like semantic navigation and multiple cursors. This cheat sheet summarizes essential shortcuts and settings to help you navigate and edit code efficiently in Zed.


Enabling/Disabling Vim Mode

  • Enable/Disable Vim Mode: Open the command palette and use Toggle Vim Mode.
  • This updates your user settings: "vim_mode": true or false.
@guidoschmidt
guidoschmidt / zig.txt
Created July 2, 2025 14:10 — forked from peterc/zig.txt
Basic Zig programming cheat sheet for LLM AI agent
# Zig Programming Cheat Sheet
This guide condenses the key ideas from Chapter 1 of the Zig book, emphasizing Zig's syntax, semantics, workflows, and philosophy. It distills nuanced language details, technical rules, compiler constraints, and examples for direct application by AI or technical users.
---
## 1. Zig Philosophy and Paradigm
- Zig is a **low-level, general-purpose, modern programming language** designed for safety, control, and simplicity.
- Major design goal: **Less is more** (removes confusing/unsafe C/C++ behaviors; adds consistency).
@guidoschmidt
guidoschmidt / core-audio-sine-wave.c
Created May 23, 2025 19:27 — forked from gcatlin/core-audio-sine-wave.c
Core Audio sine wave example
// To run:
// clang core-audio-sine-wave.c -framework AudioUnit && ./a.out
#include <AudioUnit/AudioUnit.h>
#define SAMPLE_RATE 48000
#define TONE_FREQUENCY 440
#define M_TAU 2.0 * M_PI
OSStatus RenderSineWave(
void *inRefCon,
@guidoschmidt
guidoschmidt / async_pandas_dataframe.py
Created April 13, 2024 20:07
asyncio Pandas dataframe
import asyncio
import numpy as np
import pandas as pd
async def fun2(x):
return x * 2
async def main():
df = pd.DataFrame(np.arange(10), columns=['old'])
@guidoschmidt
guidoschmidt / animate-ascii.zig
Created January 11, 2024 22:31
Animate 2D text buffers right in the terminal
fn printDefault(c: u8) void {
std.debug.print("{c}", .{ c });
}
fn animate(buffer: *[]u8, rows: u32, cols: u32, comptime print_fn: fn(u8) void) void {
for(0..rows) |dy| {
for(0..cols) |dx| {
const idx = dy * cols + dx;
const pipe_tile = buffer.*[idx];
std.debug.print("\x1B[{d};{d}H", .{ dy, dx });
@guidoschmidt
guidoschmidt / closure.zig
Created November 2, 2023 22:19 — forked from ikskuh/closure.zig
Zig Closure Implementation
const std = @import("std");
pub fn main() void {
std.log.info("mutable closure:",.{});
runMutDemo();
std.log.info("const closure:",.{});
runConstDemo();
}
@guidoschmidt
guidoschmidt / index.ts
Created April 24, 2023 19:13
thi.ng/voronoi-foam
import { srgb } from "@thi.ng/color";
import type { Color, css } from "@thi.ng/color";
import { randMinMax2 } from "@thi.ng/vectors";
import type { Vec } from "@thi.ng/vectors";
import { repeatedly } from "@thi.ng/transducers";
import { draw } from "@thi.ng/hiccup-canvas";
import type { IToHiccup } from "@thi.ng/api";
const NUM_CELLS = 10;
const WIDTH = window.innerWidth;
@guidoschmidt
guidoschmidt / irc.md
Created December 9, 2022 19:39 — forked from xero/irc.md
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@guidoschmidt
guidoschmidt / hide-scrollbars.css
Created October 28, 2022 13:01
Hide Scrollbars
/* Hide scrollbar for Chrome, Safari and Opera */
.scrollable::-webkit-scrollbar {
display: none;
}
.scrollable {
/* Hide scrollbar for IE, Edge and Firefox */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
@guidoschmidt
guidoschmidt / reset.css
Created October 24, 2022 21:29
reset.css for Interface + Interaction 2022/23 @ FH Bielefeld
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,