Skip to content

Instantly share code, notes, and snippets.

View JBlackCat's full-sized avatar

J Black JBlackCat

  • SF Bay Area, CA
View GitHub Profile
@JBlackCat
JBlackCat / Using node with Debian and Ubuntu.md
Last active June 19, 2016 18:34
Using node with Debian and Ubuntu
@JBlackCat
JBlackCat / what-forces-layout.md
Created July 12, 2016 00:02 — 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.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
@JBlackCat
JBlackCat / clamav-mac.md
Created January 30, 2017 07:16 — forked from Uchean/clamav-mac.md
Get ClamAV running on Mac OS X (using Homebrew)

Get ClamAV running on Mac OS X (using Homebrew)

The easiest way to get the ClamAV package is using Homebrew

$ brew install clamav

Before trying to start the clamd process, you'll need a copy of the ClamAV databases.

Create a freshclam.conf file and configure as so

@JBlackCat
JBlackCat / NeoVim MacOS Python.md
Last active February 19, 2017 19:21
Get python working correctly with NeoVim on MacOS