These rules are adopted from the AngularJS commit conventions.
<script type="javascript/template" id="js-code-template"> | |
<!-- Here is the mobile gmail first (but still works in Outlook) markup --> | |
<table width="{{ container }}" border="0" cellpadding="0" cellspacing="0" align="center"> | |
<tr> | |
<td> | |
{% _(cols).times(function(n) { %} | |
{% if (n === 0) { %} | |
<!--[if mso]><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top" width="{{ colWidths[n] }}"><![endif]--> | |
{% } %} | |
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="left" class="col" style="width: 100%; max-width: {{ colWidths[n] }}px;"> |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- So that mobile will display zoomed in --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- enable media queries for windows phone 8 --> | |
<meta name="format-detection" content="telephone=no"> <!-- disable auto telephone linking in iOS --> | |
<title>Test: CSS, to inline or not?</title> | |
<style type="text/css"> |
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
// App | |
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app', | |
template: '<span>{{ sayHello() }}</span>', | |
}) | |
export class App { | |
public name: string = 'John'; |
If you would like to persist data from your ECS containers, i.e. hosting databases like MySQL or MongoDB with Docker, you need to ensure that you can mount the data directory of the database in the container to volume that's not going to dissappear when your container or worse yet, the EC2 instance that hosts your containers, is restarted or scaled up or down for any reason.
Don't know how to create your own AWS ECS Cluster? Go here!
Sadly the EC2 provisioning process doesn't allow you to configure EFS during the initial config. After your create your cluster, follow the guide below.
If you're using an Alpine-based Node server like duluca/minimal-node-web-server follow this guide:
#/bin/bash | |
# | |
# Script to quickly install an AKS cluster | |
# | |
set -x | |
# Install the aks-preview extension | |
az extension add --name aks-preview |