This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)
Given the code
| - What do Etcd, Consul, and Zookeeper do? | |
| - Service Registration: | |
| - Host, port number, and sometimes authentication credentials, protocols, versions | |
| numbers, and/or environment details. | |
| - Service Discovery: | |
| - Ability for client application to query the central registry to learn of service location. | |
| - Consistent and durable general-purpose K/V store across distributed system. | |
| - Some solutions support this better than others. | |
| - Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state. | |
| - Centralized locking can be based on this K/V store. |
| # Install git | |
| sudo apt-get install git-core | |
| # Install Node.js | |
| sudo apt-get install -y libssl-dev pkg-config build-essential curl gcc g++ checkinstall | |
| sudo apt-get install python-software-properties | |
| sudo add-apt-repository ppa:chris-lea/node.js | |
| sudo apt-get update | |
| sudo apt-get install nodejs |
| <div id="app"> | |
| <v-toolbar class="green"> | |
| <v-toolbar-title>Example vuetify template</v-toolbar-title> | |
| </v-toolbar> | |
| <v-app> | |
| <v-content> | |
| <v-container fluid grid-list-xl> | |
| <v-layout row justify-center> |
| server { | |
| client_body_in_file_only clean; | |
| client_body_buffer_size 32K; | |
| client_max_body_size 300M; | |
| sendfile on; | |
| send_timeout 300s; | |
| # Port that the web server will listen on. | |
| #listen 80; |
Installing Xcode and the command line tools need to be done first because it installs gcc.
https://developer.apple.com/xcode/features/
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
| var Person = (function () { | |
| function Person(name) { | |
| this.name = name; | |
| } | |
| return Person; | |
| })(); | |
| function greeter(person) { | |
| return "hallo " + person.name; | |
| } | |
| var person = new Person("bert"); |
| #!/bin/bash -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |