Skip to content

Instantly share code, notes, and snippets.

View j--w's full-sized avatar

Jim Wright j--w

  • Vancouver, Canada
View GitHub Profile

Angular2 + JSPM cheat sheet

First time setup

  • install jspm beta: npm install -g jspm@beta
  • set up your project: jspm init
  • install dependencies: jspm install angular2 reflect-metadata zone.js es6-shim

This will create a jspm_packages folder, and a config.js file.

Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate

@j--w
j--w / error.xml
Last active November 20, 2015 19:54
awsm-s3tokenvendor
<Error>
<Code>InvalidAccessKeyId</Code>
<Message>
The AWS Access Key Id you provided does not exist in our records.
</Message>
<AWSAccessKeyId>{ACCESS_KEY_FROM_ENDPOINT}</AWSAccessKeyId>
<RequestId>{RequestId}</RequestId>
<HostId>
{HostId}
</HostId>
[
{
"order": 0,
"originStation": "Brighton",
"destinationStation": "London Victoria",
"operator": "Southern Trains",
"startTime": "23:50:00",
"arrivalTime": "01:00:00",
"ticketPrices": [
{
// ==UserScript==
// @name CMD B Block
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==