I hereby claim:
- I am ckimrie on github.
- I am ckimrie (https://keybase.io/ckimrie) on keybase.
- I have a public key ASB-F0l2fSFbaeWHkKPvzAEOVqhV52uSOPoINpy2YikFKwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Description: | |
This template deploys a VPC, with a three public and private subnets spread | |
across three Availability Zones. It deploys an Internet Gateway, with a default | |
route on the public subnets. It deploys a pair of NAT Gateways (one in each AZ), | |
and default routes for them in the private subnets. | |
Parameters: | |
EnvironmentName: |
interface User { | |
//Identification & Classification | |
userId: number; | |
userName: string; //Unique key for application | |
type: "MEMBER" | "GUEST" | "ANONYMOUS"; | |
application: Application; //eg User is a member of the Chiltern Arriva system ('application' provides flexibility | |
// for Chiltern to have many apps with Ace system) | |
//Profile | |
firstName: string; |
import { Component, OnInit, OnDestroy } from '@angular/core'; | |
import {Http} from "@angular/http"; | |
import { LocalCacheService } from "./local-cache.service"; | |
@Component({ | |
selector: 'app-example', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class ExampleComponent implements OnInit, OnDestroy { |
//-----------------------------------------------// | |
//On page load | |
// - Browser - | |
//-----------------------------------------------// | |
AWS.config.update({ | |
region: "eu-west-1" | |
}); | |
var credConfig = { |
//---- Angular 2 Http Service Example ---- | |
import {Injectable} from "@angular/core"; | |
import {Http, Headers} from "@angular/http"; | |
const AWS = require("aws-sdk"); | |
@Injectable() | |
export class ApiGatewayService { | |
constructor(private http:Http){ |
<link rel="import" href="https://www.polymer-project.org/1.0/components/polymer/polymer.html"> | |
<link rel="import" href="https://gist.githubusercontent.com/ckimrie/22718bfead15b8903b9f7a616342d19f/raw/cedbff08823c585c7d2eebd8ef94d1b204438a50/component.html"> | |
<dom-module id="component-2"> | |
<template> | |
<style include="component-1"> | |
:host { | |
display: block; | |
} | |
</style> |
<link rel="import" href="https://www.polymer-project.org/1.0/components/polymer/polymer.html"> | |
<dom-module id="component-1"> | |
<template> | |
<style> | |
:host { | |
display: block; | |
} | |
.red-box { | |
background-color: red; | |
color: white; |
/** | |
* $.unserialize | |
* | |
* Takes a string in format "param1=value1¶m2=value2" and returns an object { param1: 'value1', param2: 'value2' }. If the "param1" ends with "[]" the param is treated as an array. | |
* | |
* Example: | |
* | |
* Input: param1=value1¶m2=value2 | |
* Return: { param1 : value1, param2: value2 } | |
* |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="JS Bin Competition Entry" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.8/dojo/dojo.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="surface"></div> |