Skip to content

Instantly share code, notes, and snippets.

View lcochrane's full-sized avatar

Lauren Cochrane lcochrane

  • Australia
View GitHub Profile
@lcochrane
lcochrane / playpause-youtube-brave.js
Created March 24, 2024 12:29
JXA - Brave Browser Automation - Quick Pause the YouTube tab playing in any window
// Thanks to https://stevebarbera.medium.com/automating-chrome-with-jxa-javascript-application-scripting-6f9bc433216a
// Modified for Brave Browser
// grab the Brave object
var brave = Application("Brave Browser");
// grab all of the Brave windows
var windows = brave.windows;
// loop through the Brave windows
@lcochrane
lcochrane / README.md
Last active December 23, 2015 23:09 — forked from mbostock/.block
@lcochrane
lcochrane / README.md
Created September 16, 2013 04:53 — forked from mbostock/.block

This choropleth encodes unemployment rates from 2008 with a quantize scale ranging from 0 to 15%. A threshold scale is a useful alternative for coloring arbitrary ranges.

@lcochrane
lcochrane / README.md
Last active December 22, 2015 17:09 — forked from mbostock/.block
ACT Population Projection - Population Pyramid (Overlay)

This diagram shows age distribution in the Australian Capital Territory from 1971 through to 2059 (projections from 2009-2059).

Use the arrow keys to observe the changing population in 5 year increments. The blue bars are the male population, while the pink bars are the female population; the bars are partially transparent so that you can see how they overlap, unlike the traditional side-by-side display which makes it difficult to compare the relative distribution of the sexes.

@line: #aaa;
@shade0: transparent;
@decile1:#A50026;
@decile2:#D73027;
@decile3:#F46D43;
@decile4:#FDAE61;
@decile5:#FEE08B;
@decile6:#D9EF8B;
@decile7:#A6D96A;