Skip to content

Instantly share code, notes, and snippets.

View antoninadert's full-sized avatar
🎯
Focusing

Antonin Adert antoninadert

🎯
Focusing
View GitHub Profile
@antoninadert
antoninadert / nginx.conf
Created December 17, 2018 10:05 — forked from leosco/nginx.conf
Nginx multi-core node processes w/ SSL termination and port 80 to 443 redirect; a config template
# one worker per CPU
worker_processes 4;
events {
# 256 times the number of CPUs you're using
worker_connections 1024;
}
http {
# websockets upgrade mapping
@antoninadert
antoninadert / gist:f7b3ec2d7c7572b33b662415ccaae849
Last active April 18, 2019 13:50
Animated waveform in URL and page title (from jake albaugh)
FROM https://twitter.com/jake_albaugh/status/1118656204438482944
var l = ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"];
var x = new AudioContext();
var a = x.createAnalyser();
a.fftSize = 32;
var d = new Uint8Array(16);
navigator.mediaDevices.getUserMedia({ audio: true }).then(s => {
x.createMediaStreamSource(s).connect(a);

'Users hate change'

This week NN Group released a video by Jakob Nielson in which he attempts to help designers deal with the problem of customers being resistant to their new site/product redesign. The argument goes thusly:

  1. Humans naturally resist change
  2. Your change is for the better
  3. Customers should just get used to it and stop complaining

There's slightly more to it than that, he caveats his argument with requiring you to have of course followed their best practices on product design, and allows for a period of customers being able to elect to continue to use the old site, although he says this is obviously only a temporary solution as you don't want to support both.