Skip to content

Instantly share code, notes, and snippets.

@drzax
drzax / kill.sh
Created January 25, 2018 06:21 — forked from colingourlay/kill.sh
Kill McAfee
sudo /usr/local/McAfee/AntiMalware/VSControl stopoas
sudo killall VShieldService
sudo killall VShieldScanner
@drzax
drzax / README.md
Last active March 3, 2016 22:43 — forked from colingourlay/esnextbin.md
esnextbin sketch
We couldn’t find that file to show.
@drzax
drzax / README.md
Created January 25, 2016 10:41 — forked from eesur/README.md
d3 | Reusable slopegraph

Reusable slopegraph inspired/adapted from Ben Van Dyke's example into a reusable chart.

This slopegraph example shows the number of personal computers installed in a country per household. This includes desktop PCs and laptops, but excludes smartphones and terminals connected to mainframe computers. All figures are calculated using total number of Personal Computers and the Total Number of Households.

data source

[
{
"Ministry":"01. Barton (Protectionist), 1 Jan 1901-24 Sept 1903",
"Title":"Minister for External Affairs",
"Name":"Barton, Edmund",
"House":"HR",
"Party":"Protectionist",
"State":"NSW",
"InCabinet":"N/A",
"Start":"1901-01-01",
/**
* See: http://jsfromhell.com/math/dot-line-length
*
* Distance from a point to a line or segment.
*
* @param {number} x point's x coord
* @param {number} y point's y coord
* @param {number} x0 x coord of the line's A point
* @param {number} y0 y coord of the line's A point
* @param {number} x1 x coord of the line's B point