Skip to content

Instantly share code, notes, and snippets.

@rctlmk
rctlmk / Cargo.toml
Created April 21, 2023 23:37
SplitPane
[dependencies]
egui = "0.21"
egui_extras = "0.21"
eframe = "0.21"
@keyosk
keyosk / README.md
Last active January 11, 2023 00:49
GDQ Schedule Page Current Run Reloader

Games Done Quick Schedule Enhancements

This script1 will allow you to click the name of a game and it will open the corresponding Speed Run Listings for the game

Footnotes

  1. Using the tampermonkey browser extension you can add a custom user script which runs on the Games Done Quick schedule page.

@paulirish
paulirish / what-forces-layout.md
Last active April 26, 2024 17:33
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent