Ubuntu 16 + Nginx + PHP-FPM + MariaDB + Memcached
#!/usr/bin/env bash | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get -y install software-properties-common | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository ppa:nginx/stable | |
sudo apt-get -y update | |
sudo apt-get upgrade | |
# Install packages |
import axios from 'axios'; | |
import constants from '@/core/common/constants'; | |
export function fetchLegDistance(leg) { | |
return new Promise((resolve, reject) => { | |
if (!leg.startLocation.address.verified || !leg.startLocation.address.verified) { | |
reject(new Error('Unverified leg address')); | |
return; | |
} |
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
div { | |
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); | |
} |