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;
}This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| #!/bin/bash | |
| # This script will automatically set up a single node Flynn Cluster on your linux box | |
| # Fresh Flynn install with domain provided by the xip.io service | |
| # Tested with Base Image: Ubuntu 14.04 x64 @ DigitalOcean droplet | |
| # @date 16 Nov 2015 | |
| # @author Edu Wass (eduwass at gmail com) | |
| echo '---- START SETUP ----' |
| me=$(whoami) | |
| # Get Sudo. | |
| if [ $EUID != 0 ]; then | |
| sudo "$0" "$@" | |
| exit $? | |
| fi | |
| # Install Xcode command line tools. | |
| xcode-select --install |
| // array utils | |
| // ================================================================================================= | |
| const combine = (...arrays) => [].concat(...arrays); | |
| const compact = arr => arr.filter(Boolean); | |
| const contains = (() => Array.prototype.includes | |
| ? (arr, value) => arr.includes(value) | |
| : (arr, value) => arr.some(el => el === value) |
| // ---- | |
| // Sass (v3.4.1) | |
| // Compass (v1.0.1) | |
| // ---- | |
| // Sass: Generating decoupled color schemes | |
| // Helper functions | |
| @function tint($color, $percentage) { | |
| @return mix(white, $color, $percentage); |
| // temp fix for iOS8 beta 1 (fixed in beta 2), add it after the reference to cordova.js | |
| if (navigator.userAgent === undefined) { | |
| navigator.__defineGetter__('userAgent', function() { | |
| return("Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit"); | |
| }); | |
| } |
| angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
| .run(function(DB) { | |
| DB.init(); | |
| }); |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |