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 | |
ZONE="example.com" | |
HOSTNAME="test" | |
SGROUP="my_security_group" | |
CURRENT_IP=$(dig @resolver1.opendns.com myip.opendns.com +short) | |
OLD_IP=$(dig @resolver1.opendns.com $HOSTNAME.$ZONE +short) | |
if [[ $CURRENT_IP =~ [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ ]] ; then |
type Meters = { meters: number }; | |
type Feet = { feet: number }; | |
type Distance = Meters | Feet; | |
function isMeters(distance: Distance): distance is Meters { | |
return typeof (distance as Meters).meters === 'number'; | |
} | |
function isFeet(distance: Distance): distance is Feet { | |
return typeof (distance as Feet).feet === 'number'; | |
} |
-- Loads a single Lua expression as a JSON-like document, securely. | |
-- function expressions are prohibited, and the __index of the | |
-- strings metatable is temporarily stripped or replaced. | |
-- see also: ltin | |
-- usage: | |
-- lutn = require "lutn" | |
-- result = lutn(source_string [, environment = nil] [, string_metatable_index = nil]) |