Skip to content

Instantly share code, notes, and snippets.

View nmeylan's full-sized avatar

Nicolas Meylan nmeylan

View GitHub Profile
@juancampa
juancampa / egui_centerer.rs
Created March 16, 2023 13:50
Centering arbitrary UIs in egui
// Helper function to center arbitrary widgets. It works by measuring the width of the widgets after rendering, and
// then using that offset on the next frame.
fn centerer(ui: &mut Ui, add_contents: impl FnOnce(&mut Ui)) {
ui.horizontal(|ui| {
let id = ui.id().with("_centerer");
let last_width: Option<f32> = ui.memory_mut(|mem| mem.data.get_temp(id));
if let Some(last_width) = last_width {
ui.add_space((ui.available_width() - last_width) / 2.0);
}
let res = ui
@debasishg
debasishg / dod.md
Last active January 12, 2026 16:07
Data oriented design, hardware awareness, cache awareness in data structures & algorithms

Performance Engineering, Hardware and cache awareness with algorithm and data structures

  1. Parallel Computing Course - Stanford CS149, Fall 2023
  2. Performance-Aware Programming Series by Casey Muratori
  3. Algorithms for Modern Hardware
  4. Computer Systems: A Programmer's Perspective, 3/E - by Randal E. Bryant and David R. O'Hallaron, Carnegie Mellon University
  5. Performance Engineering Of Software Systems - am MITOCW course
  6. Parallel Programming 2020 by NHR@FAU
  7. Cpu Caches and Why You Care - by Scott Meyers
  8. [Optimizing a ring buffer for throughput](https://rig
@chris-hatton
chris-hatton / vibe_config_guide.md
Last active December 11, 2025 11:45
Mistral Vibe `config.toml` guide (reverse engineered by Le Chat)

Based on config.py from Mistral Vibe, here’s a reverse-engineered documentation for the config.toml format and its editing. This file is used to configure the "vibe" application, which appears to be a CLI or agent-based tool for interacting with AI models, tools, and project contexts.


config.toml Documentation

File Location

  • The global config file is located at:
    • $VIBE_HOME/config.toml (if $VIBE_HOME is set)
    • Otherwise: ~/.vibe/config.toml