Skip to content

Instantly share code, notes, and snippets.

View d-bucur's full-sized avatar

Dorian Bucur d-bucur

  • country = f(time)
View GitHub Profile
@DylanRJohnston
DylanRJohnston / tooltip.rs
Created June 5, 2025 08:48
Bevy Hover Tooltip Plugin
use bevy::prelude::*;
use crate::observe::Observe;
pub fn tooltip(text: &'static str) -> impl Bundle {
(
Observe::event(tooltip_hover_start(text)),
Observe::event(tooltip_hover),
Observe::event(tooltip_hover_end),
)
@haxiomic
haxiomic / ObjectPool.hx
Last active June 28, 2024 03:42
Structure of Array and Array of Structures in Haxe
/**
* ObjectPool is a type building macro to create array-of-structure or structure-of-array pools.
* With the intention being to improve access performance, both in CPU cache coherence and by avoiding the GC
*
* This implementation is a minimal working proof of concept
*
* Improvements you may want to make
* - Support deallocation of instances and space reclaiming
* - Replace haxe.io.Bytes because field access has overhead
*
@dodying
dodying / chromium-command-line-switches.md
Last active November 2, 2025 20:58
[List of Chromium Command Line Switches] https://peter.sh/experiments/chromium-command-line-switches/ #chrome #lookup

There are lots of command lines which can be used with the Google Chrome browser. Some change behavior of features, others are for debugging or experimenting. This page lists the available switches including their conditions and descriptions. Last automated update occurred on 2018-10-20.

Condition Explanation
-- Report pseudo allocation traces. Pseudo traces are derived from currently active trace events.
--/prefetch:1 /prefetch:# arguments to use when launching various process types. It has been observed that when file reads are consistent for 3 process launches with the same /prefetch:# argument, the Windows prefetcher starts issuing reads in batch at process launch. Because reads depend on the process type, the prefetcher wouldn't be able to observe consistent reads if no /prefetch:# arguments were used. Note that the browser process has no /prefetch:# argument; as such a