(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
const YAML = require('yamljs'); | |
const globby = require('globby'); | |
const fs = require('fs-extra'); | |
const path = require('path'); | |
const styleDictionary = require('style-dictionary'); | |
const convertStringValues = obj => | |
Object.keys(obj).reduce((acc, key) => { | |
const item = obj[key]; | |
const hasValueKey = !!item.value; |
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.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
Picking the right architecture = Picking the right battles + Managing trade-offs