When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| #!/bin/bash | |
| # Update and upgrade Homebrew | |
| echo "Updating Homebrew..." | |
| brew update | |
| brew upgrade | |
| # Install nvm (Node Version Manager) | |
| echo "Installing nvm..." |
| # settings we’re about to change | |
| osascript -e 'tell application "System Preferences" to quit' | |
| # Ask for the administrator password upfront | |
| sudo -v | |
| # Keep-alive: update existing `sudo` time stamp until `.macos` has finished | |
| while true; do | |
| sudo -n true | |
| sleep 60 | |
| kill -0 "$$" || exit |
| license: mit | |
| height: 620 | |
| border: no |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/zoom-svg-rescaled |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/zoom-canvas-rescaled |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
| </head> | |
| <body> | |
| <script> |
| // Ported from Stefan Gustavson's java implementation | |
| // http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
| // Read Stefan's excellent paper for details on how this code works. | |
| // | |
| // Sean McCullough banksean@gmail.com | |
| /** | |
| * You can pass in a random number generator object if you like. | |
| * It is assumed to have a random() method. | |
| */ |