Skip to content

Instantly share code, notes, and snippets.

View natterstefan's full-sized avatar
getting things done 💪🏻

Stefan Natter natterstefan

getting things done 💪🏻
View GitHub Profile
natterstefan / 0_reuse_code.js
Created July 28, 2016 13:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
natterstefan / plate-snitch.js
Created September 1, 2017 06:19 — forked from taitems/plate-snitch.js
(Extract) Check the status of a vehicle registration and scrape results.
// Open form and submit enquire for `rego`
function getInfo(rego) {
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.type('#registration-number-ctrl input[type=text]', rego)
.click('.btn-holder input')
.then(function(body) {
// Modified from @mutsuda's
// by @levelsio
// 1) Make a Google Sheet, we'll pull the first cell e.g. A1
// 2) Publish your Google Sheet, File -> Publish To Web
// 3) Copy the SHEET_ID in the URL, put it in here below:
const endpoint = ""
// 4) Install Scriptable @
// 5) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc)
natterstefan / add_favicons.js
Created December 8, 2020 17:48 — forked from ottsch/add_favicons.js
Add favicon to links
const addFavicons = () => {
let filtered ='.roam-body a'), a => {
return a.hostname && a.hostname !== document.location.hostname;
});, a => {
if (a.text == "*") { = `url(${a.hostname}) right center no-repeat`; = "18px";
} else { = `url(${a.hostname}) left center no-repeat`;
natterstefan /
Created March 18, 2020 20:10 — forked from amcvitty/
Configure Password Autofill on a React Native Expo app

Password Autofill on a React Native Expo app

Developing an app to accompany our website, worried that we would lose people in the transition if they couldn't remember their password, we were looking to make our app do Password AutoFill, a feature in iOS.

A talk from WWDC introducing the feature:

It works well, but there were a few bumps in the road making it work for React Native on Expo, so here are some notes to help out.

Apple's docs are here: and they say something like this: