Skip to content

Instantly share code, notes, and snippets.

View robstarbuck's full-sized avatar

Robert Starbuck robstarbuck

View GitHub Profile
@robstarbuck
robstarbuck / 0 leaving whatsapp.md
Last active February 14, 2022 17:40
A Brief Explanation as to Why I'm Leaving Whatsapp

Leaving WhatsApp

Some of you might recognise this which popped up on my screen mid January:

January - Terms and Conditions

In accepting this policy we’re allowing for the collection of our data including:

"battery level, signal strength, app version, browser information, mobile network, connection information (including phone number, mobile operator or ISP), language and time zone, IP address, device operations information, and identifiers (including identifiers unique to Facebook Company Products associated with the same device or account)." (1)

// http://stackoverflow.com/questions/5282228/include-javascript-file-in-chrome-console
const script = 'https://cdnjs.cloudflare.com/ajax/libs/ramda/0.26.1/ramda.min.js';
fetch(script)
.then(response => response.text())
.then(text => eval(text));
// # any
// ARIA global states and propertiescan be used on any HTML element.
[any]
// # alert
// A message with important, and usually time-sensitive, information. See related alertdialogandstatus.
[alert]
// # alertdialog
// A type of dialog that contains an alert message, where initial focus goes to an element within the dialog. See related alertanddialog.
@robstarbuck
robstarbuck / Consonants.md
Last active January 13, 2017 11:30
Text - British Pronunciation Symbols

Consonants

Symbol As in…
b __b__ig /bɪɡ/
d __d__ig /dɪɡ/
__j__et /dʒɛt/
ð __th__en /ðɛn/
f __f__ig /fɪɡ/
ɡ __g__et /ɡɛt/
@robstarbuck
robstarbuck / regex
Created March 30, 2016 12:33
Regex with a look-behind, useful for adding quotes to JSON
(?<=\,)[^,]*
@robstarbuck
robstarbuck / last-commit-hash-as-file.bash
Last active July 29, 2016 15:29
Create a file with the with the hash of the last git commit.
>> "$release_dir/$todaydate/"$(git log -n 1 --pretty=format:'%H')
  1. A Bad Beginning Makes A Bad Ending.
  2. A Bad Corn Promise Is Better Than A Good Lawsuit.
  3. A Bad Workman Quarrels With His Tools.
  4. A Bargain Is A Bargain.
  5. A Beggar Can Never Be Bankrupt.
  6. A Bird In The Hand Is Worth Two In The Bush.
  7. A Bird May Be Known By Its Song.
  8. A Black Hen Lays A White Egg.
  9. A Blind Leader Of The Blind.
  10. A Blind Man Would Be Glad To See.
@robstarbuck
robstarbuck / Text - Markdown Carter.md
Last active August 18, 2016 11:35
HISTORY - A Markdown Version of the 1215 Magna-Carter (Great Charter)

Full-text translation of the 1215 edition of Magna Carta

Clauses marked (+) are still valid under the charter of 1225, but with a few minor amendments. Clauses marked (*) were omitted in all later reissues of the charter. In the charter itself the clauses are not numbered, and the text reads continuously. The translation sets out to convey the sense rather than the precise wording of the original Latin.

JOHN, by the grace of God King of England, Lord of Ireland, Duke of

@robstarbuck
robstarbuck / Simple HTTP Server + Chrome Open .bash
Last active August 18, 2016 11:33
Start a HTTP server and open in chrome
#!/bin/bash
${1:=8000}
python -m SimpleHTTPServer $1 & open -a "Google Chrome" http://localhost:$1
@robstarbuck
robstarbuck / gist:2f7c2bb13f15a6d61354
Created July 15, 2015 05:53
Convert a webpage from html to markdown and from ISO-8859-1 to UTF8
wget http://www.oreilly.com/tim/herbert/ch00.html -O -| iconv -f ISO-8859-1 -t UTF8 | pandoc -f html -t markdown -o ch00.md