See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| const PENDING = 1; | |
| const RESOLVED = 2; | |
| const REJECTED = 3; | |
| const callLater = (fn) => setTimeout(fn, 0); | |
| class Promise { | |
| constructor(initPromiseFn) { | |
| this._state = PENDING; | |
| this._value = undefined; |
| import { Directive, ElementRef, forwardRef, Input, Renderer2 } from '@angular/core'; | |
| import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; | |
| import { fromEvent } from 'rxjs/observable/fromEvent'; | |
| import { merge } from 'rxjs/observable/merge'; | |
| import { timer } from 'rxjs/observable/timer'; | |
| import { Subscription } from 'rxjs/Subscription'; | |
| export const DEFAULT_VALUE_ACCESSOR : any = { | |
| provide: NG_VALUE_ACCESSOR, | |
| useExisting: forwardRef(() => NgControlOptionsDirective), |
Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.
for 64bit:
"C:\Program Files\Git\bin\sh.exe" --login -ifor 32bit:
"C:\Program Files (x86)\Git\bin\sh.exe" --login -iBy: @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
| (function(self) { | |
| 'use strict'; | |
| if (self.fetch) { | |
| return | |
| } | |
| function normalizeName(name) { | |
| if (typeof name !== 'string') { | |
| name = String(name) |
@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {| var Middleware = function() {}; | |
| Middleware.prototype.use = function(fn) { | |
| var self = this; | |
| this.go = (function(stack) { | |
| return function(next) { | |
| stack.call(self, function() { | |
| fn.call(self, next.bind(self)); | |
| }); |
| echo %USERPROFILE% | |
| C:\Users\Orest |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Form latin-1 input validation</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.10/angular.min.js"></script> | |
| <script type="text/javascript"> | |
| (function(angular) { | |
| 'use strict'; |