Skip to content

Instantly share code, notes, and snippets.

@melloc01
melloc01 / cloudSettings
Last active September 24, 2021 14:43
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-12-19T18:25:14.965Z","extensionVersion":"v3.2.4"}
@melloc01
melloc01 / Desafio Pokémon
Created January 17, 2020 14:20
Desafio Pokémon
Implementar um catálogo de Pokémons (Pokédex) utilizando a API http://pokeapi.co
----
A aplicação precisa:
- Listar pokémons (paginável)
- Ao clicar em um pokémon, exibir detalhes (livre)
Usar como parâmetro para estilização https://www.pokemon.com/us/pokedex/.
@melloc01
melloc01 / extensions.json
Created April 20, 2020 13:23
Settings sync: extensions.json
[
{
"metadata": {
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29",
"publisherId": "formulahendry.auto-close-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-close-tag",
"publisher": "formulahendry",
"version": "0.5.6"
@melloc01
melloc01 / what-forces-layout.md
Created October 14, 2021 18:00 — 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