Skip to content

Instantly share code, notes, and snippets.

View ohhelloana's full-sized avatar
🐾

Ana Rodrigues ohhelloana

🐾
View GitHub Profile

Notes from Coed:Ethics conference, London, 13 July 2018

Cori Crider - "When data kills" / Weaponised AI

  • Imam Salem bin Ali Jaber preached in Yemen against Islamic extremism; guest at a wedding of relative; hit by a US Hellfire missile fired from a drone. Relative Faisal made contact with Cori, went to Washington DC. No explanation ever made by government (although compensation was paid).
  • Decision-making process behind the attack not known exactly. But there is significant evidence that such attacks serve to further radicalise people; attack results in ~3x more new recruits than extremists killed by attack.
  • Most drone attacks are not on named individuals, but rather "signature strikes" — a euphemism for killing people the military doesn't even know, but who match a certain behavioural pattern (perhaps based on metadata — Hayden: "we kill people based on metadata"
  • Skynet (known through Snowden relevations): use machine learning to try to find courier
@kevinlin1
kevinlin1 / autocaption.js
Last active April 25, 2024 20:19
Caption your speech on any website using the Web Speech API. Supports all browsers except for Firefox. To start captioning speech, add this script as a bookmarklet (paste contents in the URL field with "javascript:" at the beginning) and run the bookmark. To stop captioning speech, click the caption box.
javascript:(() => {
const div = document.createElement('div');
div.style.alignItems = 'flex-end';
div.style.backgroundColor = 'black';
div.style.top = '0';
div.style.color = 'white';
div.style.display = 'none';
div.style.fontFamily = 'Google Sans';
div.style.fontSize = '3vh';
div.style.lineHeight = '4vh';
@paulirish
paulirish / what-forces-layout.md
Last active May 9, 2024 07:00
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