Skip to content

Instantly share code, notes, and snippets.

View LulzAugusto's full-sized avatar

Luiz Crisostomo LulzAugusto

  • Brasília, Brazil
View GitHub Profile
@paulirish
paulirish / what-forces-layout.md
Last active July 22, 2024 06:32
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
@elijahmanor
elijahmanor / readme.text
Last active July 10, 2024 04:31
My GitHub Atom Packages
atom-beautify@0.28.21
atom-css-comb@3.0.0
caniuse@0.9.0
easy-motion-redux@1.0.0
editorconfig@1.2.4
emmet@2.4.1
git-blame@0.4.8
git-plus@5.12.1
git-time-machine@1.2.3
jscs-fixer@1.0.2
@ericelliott
ericelliott / defaults-overrides.md
Last active May 7, 2023 13:52
ES6 defaults / overrides pattern

ES6 Defaults / Overrides Pattern

Combine default parameters and destructuring for a compact version of the defaults / overrides pattern.

function foo ({
    bar = 'no',
    baz = 'works!'
  } = {}) {
@pavlov99
pavlov99 / README.txt
Last active August 29, 2015 14:17
Countries with their timezones.
List of currenies is generated using python.
Dependencies
============
pip install pycountry pytz requests
@ericelliott
ericelliott / essential-javascript-links.md
Last active July 18, 2024 15:03
Essential JavaScript Links
@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing
@wilhelm-murdoch
wilhelm-murdoch / arthur.itermcolors
Last active September 30, 2016 21:29
My personal fish shell setup for iTerm 2 ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.16470588743686676</real>
<key>Green Component</key>
<real>0.20784313976764679</real>
@utsengar
utsengar / EncodeBased64Binary.java
Created October 11, 2011 00:27
Encode a file to base64 binary in Java
import org.apache.commons.codec.binary.Base64;
private String encodeFileToBase64Binary(String fileName)
throws IOException {
File file = new File(fileName);
byte[] bytes = loadFile(file);
byte[] encoded = Base64.encodeBase64(bytes);
String encodedString = new String(encoded);