Skip to content

Instantly share code, notes, and snippets.

{
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"security.workspace.trust.enabled": false,
"editor.fontFamily": "MonoLisa, 'Dank Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"workbench.iconTheme": "vscode-icons",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
@patgarcia
patgarcia / pr.md
Created December 1, 2021 17:13 — forked from karlhorky/pr.md
Fetch all GitHub pull requests to local tracking branches

NOTE

You may not need local branches for all pull requests in a repo.

To fetch only the ref of a single pull request that you need, use this:

git fetch origin pull/7324/head:pr-7324
git checkout pr-7324
# ...
@paulirish
paulirish / what-forces-layout.md
Last active May 19, 2024 03:45
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