Skip to content

Instantly share code, notes, and snippets.

@AMSTKO
AMSTKO / safari.md
Created December 28, 2022 08:02 — forked from RobertAKARobin/safari.md
Safari's date-picker is the cause of 1/3 of our customer support issues

Safari's date-picker is the cause of 1/3 of our customer support issues

...and obviously we're building a workaround. But I'm absolutely flabbergasted that a standard <input type="date"> HTML field, in a standard browser, from a company that bases its reputation good design, could be so dreadful.

The context

I'm the developer for a startup that sells a genetic test to recommend medications for high blood pressure. For medical reasons we need to know our customers' birth date. Most of our customers are in their 60s or older. We have found that many of them are using iPads or iPhones. And they're the ones complaining to our customer support line about our site being unusable.

The problem

setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
window.scrollTo(0, document.body.scrollHeight)
}, 1000)
#!/bin/bash
##########
# contents
##########
# contents
# notes
# script setup
# git config files

opk

@AMSTKO
AMSTKO / cloud-init-dokku-post.yaml
Created November 17, 2017 21:25 — forked from jakeklassen/cloud-init-dokku-post.yaml
Digital Ocean cloud-config script for Ubuntu 16
#cloud-config
# Configures a basic Ubuntu box.
# * Installs a few common packages
# * Disables root login
# * Disables password login
# * Creates a user in the sudo, www-data groups
#
# Follow the log by ssh-ing in and running: `tail -f /var/log/cloud-init-output.log`
apt_update: true
apt_upgrade: true
/*
* CSSrefresh v1.0.3
*
* Copyright (c) 2012 Fred Heusschen
* www.frebsite.nl
*
* Dual licensed under the MIT and GPL licenses.
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*/
@AMSTKO
AMSTKO / free_disk_space.sh
Created July 7, 2017 08:33 — forked from alepee/free_disk_space.sh
clear cache for rubygem, yarn, composer, homebrew, docker and remove temp files
###
# free_disk_space
#
# remove files from downloads folder
# clear cache for rubygem, yarn, composer, homebrew, docker
###
free_disk_space() {
if command -v docker &> /dev/null; then
echo "--> Clear Docker images cache" && \
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
margin: 0
}
@AMSTKO
AMSTKO / modal.js
Created February 8, 2016 13:43
Accessible modal. Heavily inspired by: https://github.com/gdkraus/accessible-modal-dialog.
(function (global) {
'use strict';
// Helper function to check if a node matches a selector
function matches (node, selector) {
var p = Element.prototype;
var f = p.matches || p.webkitMatchesSelector || p.mozMatchesSelector || p.msMatchesSelector || function(s) {
return [].indexOf.call(document.querySelectorAll(s), this) !== -1;
};
return f.call(node, selector);
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf