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
@d-bucur
d-bucur / PrUn Price Tooltip.js
Created March 26, 2026 15:06
Modified version of https://github.com/Manderius/PrUn_Tooltips with some small QoL feature
// ==UserScript==
// @name PrUn Tooltips by Rynx
// @namespace http://tampermonkey.net/
// @version 2.2
// @description Adds FIO powered market tooltips to Apex console
// @author Manderius (Rynx), Jani Mustonen (seequ), inspired by Tim Davis (binarygod, @timthedevguy)
// @match https://apex.prosperousuniverse.com/
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js
// @downloadURL https://raw.githubusercontent.com/Manderius/PrUn_Tooltips/main/tooltips.js
@d-bucur
d-bucur / Prefabs.cs
Last active August 20, 2025 01:45
ECS factory pattern
static class Prefabs {
static Entity SpawnEnemy(Vec2I pos, EnemyType enemyType) {
Entity entt = PrepEnemyCommon(pos);
switch (enemyType) {
case EnemyType.Skeleton:
entt.Add(
new EntityName { value = "Skeleton" },
new TextureWithSource(Assets.monsterTexture) {
TileIdx = new Vec2I(0, 4)
},
@d-bucur
d-bucur / dispatch-tests.md
Last active September 7, 2023 21:56
Rust dispatch tests

Benchmarking different ways to dispatch to a trait method, using static dispatch (compile time polymorphism), dynamic dispatch (runtime polymorphism) and dynamic dispatch backed by an arena allocator.

cargo.toml

[dependencies]
bumpalo = "3.13.0"
criterion = "0.5.1"

[[bench]]
name = "my_benchmark"
npm command Yarn command pnpm equivalent bun equivalent
npm install yarn pnpm install bun install
npm install [pkg] yarn add [pkg] pnpm add [pkg] bun add [pkg]
npm uninstall [pkg] yarn remove [pkg] pnpm remove [pkg] bun remove [pkg]
npm update yarn upgrade pnpm update bun update
npm list yarn list pnpm list ?
npm run [scriptName] yarn [scriptName] pnpm [scriptName] bun run [scriptName]
npx [command] yarn dlx [command] pnpm dlx [command] bunx [command]
npm exec yarn exec [c
@d-bucur
d-bucur / extension-scaffold.md
Last active April 8, 2026 21:58
Tools to help with scaffolding a browser extension with Vue/Vite

Vite config possible

These have an interactive configuration similar to Vite, allowing you to select the framework (Vue, React, etc.)

WXT

https://wxt.dev/

Amazing! Best one on this list. Can easily make cross browser extensions with Vue, React, Svelte. Hot reloading works very well. Has some good wrapper APIs around the confusing native ones. Successor to Vite Plugin Web Ext.

Vite Plugin Web Extension (lightweight pick)

https://vite-plugin-web-extension.aklinker1.io/