Skip to content

Instantly share code, notes, and snippets.

Algorithmic layouts

You are looking at the most important, and most abundant thing on the web. You can't see it, unfortunately, because it's very small… aaaaand it's invisible — so having a magnifying glass doesn't really help here. But still.

I'm talking, of course, about U+0020; not to be confused with the band U2, who are just as ubiquitous, but far less useful.

This unicode point, representing the humble space character, is between every word, in every run of text, on every page of the web. And it has a very special characteristic: it's not sticky like glue. If two words are neighbors but there's not enough room for both of them, the space will free the second word to wrap around and start a new line.

Before getting into flexible containers, viewport meta tags, and @media breakpoints this humble character is what makes the web fundamentally 'responsive'. That is: able to change the layout of its content to suit different devices, contexts, and settings. Browser text does this automa

@mattweston
mattweston / civiup.sh
Created October 13, 2022 21:39 — forked from kcristiano/civiup.sh
Civi Update
#!/bin/bash
# The script was built for debian - paths may vary
PHPCLI="/usr/local/bin/php"
WPCLI="/usr/local/bin/wp-cli.phar"
WP="/usr/local/bin/wp"
CV="/usr/local/bin/cv"
DATE=$(date +%Y%m%d-%I%M%S)
echo "Hello, "$USER". This script will update CiviCRM."
echo "This script requires minimum version of WordPress 5.4. CiviCRM 5.35 amd PHP 7.3."
read -p "Press [Enter] key to start the backups and updates."