DEMO and 'benchmark': http://embed.plnkr.co/ZJFVCVeCRLaADEfQcG7D/preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const Assert = require('assert'); | |
Assert.ok(module.webtask.secrets['jwt-scope'], 'The jwt-scope secret is required for the jwt-authz'); | |
module.exports = () => { | |
const requiredScopes = module.webtask.secrets['jwt-scope'].split(/\s+/); | |
return function middleware(req, res, next) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "Optional description of the plunk", // Optional | |
"index": "index.html", // Optional (if provided must have a corresponding file entry, otherwise must provide index.html) | |
"files": { // Required | |
// Inline format below for defining files (filename => content) | |
"index.html": "<html><head><link rel="stylesheet" href="style/style.css" /><script src="https://raw.github.com/JerrySievert/cromagjs/master/cromag.js"></script></head><body><h1>Header</h1></body><p>If the header above is red, that means that both this file (index.html) and the stylesheet (style.css) were property served by plunker.</p></html>", | |
// Complete format below for defining files (filename => file description) | |
"style/style.css": { | |
"mime": "text/css", // Optional (will be guessed otherwise based on filename) | |
"encoding": "utf-8", // Optional (will be guessed otherwise based on mime type) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope) { | |
$scope.name = 'World'; | |
}); |
This directive allows you to stop propagation for any event supplied.
Lets say you have an ng-click
handler on a button that is overlayed on top of an <a href></a>
link. You cant your click handler to fire, but not the anchor tag's default action. What you need is to stop the propagation of the click event up to the anchor tag.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
source: "http://whatever", | |
description: "Blah blah", | |
tags: [], | |
files: { | |
"index.html": { | |
filename: "index.html", | |
content: "<html>..." | |
}, | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('plunker', []); | |
app.controller('MainCtrl', function($scope) { | |
$scope.name = 'World'; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Plunker</title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="script.js"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App = Ember.Application.create({}); | |
App.IndexRoute = Ember.Route.extend({ | |
setupController: function(controller) { | |
controller.set('content', ['a', 'b', 'c']); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"yepnope": { | |
"name": "yepnope", | |
"version": "1.5.4", | |
"main": "./yepnope.1.5.4-min.js" | |
}, | |
"stitch-css": { | |
"name": "stitch-css", | |
"version": "0.1.7", | |
"main": "./stylesheets/_stitch.scss" |