Skip to content

Instantly share code, notes, and snippets.

@xpcrtv
xpcrtv / links.md
Created July 31, 2025 13:32 — forked from gretzkiy/links.md
Производительность, особенности и лайфхаки в разработке браузерных расширений: опыт Яндекс Выгоды - Все ссылки
@xpcrtv
xpcrtv / useful-links.md
Created February 22, 2025 09:11 — forked from mxmvshnvsk/useful-links.md
Как отдавать фронтенду только нужное, или Зачем вам BFF – полезные ссылки
@xpcrtv
xpcrtv / building-sync-systems.md
Created February 1, 2025 07:31 — forked from pesterhazy/building-sync-systems.md
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@xpcrtv
xpcrtv / what-forces-layout.md
Created March 10, 2024 11:07 — forked from paulirish/what-forces-layout.md
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
- link to Windows Termonal icon:
https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico
- path in registry to edit
\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\
- create key (WT e.g.)
- change default value - name, which you will see in context menu
- create new String value, named "Icon" with value equal path to icon
- create key named "Command" with value equal path to Windows Terminal
%APPDATA%\Local\Mictosoft\WindowsApps\wt.exe -d .