Value:
| FD | FE | AF | C | M | |
|---|---|---|---|---|---|
| Function-callable | ✓ | ✓ | ✓ | × | ✓ |
| Constructor-callable | ✓ | ✓ | × | ✓ | × |
| Prototype | F.p |
F.p |
F.p |
SC | F.p |
Property prototype |
✓ | ✓ | × | ✓ | × |
| # | |
| # URI parsing function | |
| # | |
| # The function creates global variables with the parsed results. | |
| # It returns 0 if parsing was successful or non-zero otherwise. | |
| # | |
| # [schema://][user[:password]@]host[:port][/path][?[arg1=val1]...][#fragment] | |
| # | |
| function uri_parser() { | |
| # uri capture |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| var webpack = require('webpack'); | |
| var MemoryFS = require('memory-fs'); | |
| var SingleEntryDependency = require('webpack/lib/dependencies/SingleEntryDependency'); | |
| var fs = new MemoryFS(); | |
| fs.mkdirpSync('/src'); | |
| fs.writeFileSync('/src/app.js', 'require("./dep.js")', 'utf-8'); | |
| fs.writeFileSync('/src/dep.js', 'module.exports = function(msg){console.log(msg)}', 'utf-8'); | |
| fs.writeFileSync('/src/extra-entry.js', 'require("./dep.js")', 'utf-8'); |
Authorization and Authentication are hard. when you only have to implement them once (as you do within a monolith) instead of over and over again, it makes the developer happy :-), and maybe leads to less implementation failures.
When you have a bunch of microservices, this is something that has to be considered.
Implement it once or in every microservice, or something in between?
| # On Windows 7, 8, 10 Hosts file is in c:\windows\system32\drivers\etc\hosts | |
| # | |
| # Block Skype ads | |
| 127.0.0.1 secure-sin.adnxs.com # On skype 7.* | |
| 127.0.0.1 *.adnxs.com # On skype 7.* | |
| 127.0.0.1 logi10.xiti.com # On skype 7.* | |
| 127.0.0.1 *.everesttech.net # On skype 7.* | |
| 127.0.0.1 pixel.everesttech.net # On skype 7.* | |
| 127.0.0.1 d.adroll.com # On skype 7.* |
| @Directive({ | |
| selector: '[tooltip]' | |
| }) | |
| class TooltipDirective { | |
| @Input() tooltip; | |
| private _tooltipEle; | |
| constructor(private el: ElementRef) {} | |
| ngAfterContentInit() { |
| var str = 'class ಠ_ಠ extends Array {constructor(j = "a", ...c) {const q = (({u: e}) => {return { [`s${c}`]: Symbol(j) };})({});super(j, q, ...c);}}' + | |
| 'new Promise((f) => {const a = function* (){return "\u{20BB7}".match(/./u)[0].length === 2 || true;};for (let vre of a()) {' + | |
| 'const [uw, as, he, re] = [new Set(), new WeakSet(), new Map(), new WeakMap()];break;}f(new Proxy({}, {get: (han, h) => h in han ? han[h] ' + | |
| ': "42".repeat(0o10)}));}).then(bi => new ಠ_ಠ(bi.rd));'; | |
| try { | |
| eval(str); | |
| } catch(e) { | |
| alert('Your browser does not support ES6!') | |
| } |
The attached file file spits out a string for direct injection into the head of a page, which will be a lightweight test of the ability to parse and run ES2015 syntax.
This is the original source for the test-case below:
class ಠ_ಠ extends Array{