This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get everything ready on a Mac | |
brew install docker docker-machine docker-compose | |
# Create a new machine (based on the 1.8.1 boot2docker iso) | |
docker-machine create --driver vmwarefusion --vmwarefusion-memory-size 2048 --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.8.1/boot2docker.iso osxdock | |
# Bring the machine up | |
docker-machine start osxdock | |
# Configure Shell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function easeInOutQuart( t ) { | |
const t1 = t - 1 | |
return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * t1 * t1 * t1 * t1 | |
} | |
function smoothScroll(el, to, duration) { | |
var initial = $(window).scrollTop() | |
var dest = to - initial | |
var start = null | |
function step (timestamp) { | |
if (!start) start = timestamp |