11 2016 档案
摘要:const needs = ['wifi', 'shower', 'laundry']; const homes = [{ name: 'Home 1', wifi: 'y', shower: 'y', laundry: 'y', metro: 'n', balcony: 'y', fireplace: 'n', pool: 'y' }, { name: '...
阅读全文
摘要:Before writing any Elm we need to first install the runtime locally. In this lesson we install the Elm runtime locally and set up a simple application
阅读全文
摘要:In this lesson, you will learn how to use the Formidable nodejs-dashboard event loop delay to identify expensive operations in your code. An example a
阅读全文
摘要:Realm is an ACID compliant object database. In this lesson, you will learn how to install Realm, define schemas for your data, perform CRUD operations
阅读全文
摘要:Apply filters like blur, brightness, saturation and hue to images. Combined with CSS blend modes, you can create powerful image effects using only cod
阅读全文
摘要:In this lesson we are going to learn how to build a custom Node process for batch processing of Firebase data using the Firebase queue library. From U
阅读全文
摘要:We cannot allow un-auth user to change the database data as they want, for Firebase, it is easy just need to overwirte the rules: Here we set "write"
阅读全文
摘要:When you want to build your logic with small, composable functions you need a functional way to handle conditional logic. You could wrap ternary expre
阅读全文
摘要:Article
阅读全文
摘要:Skip links are an extremely helpful navigation pattern for keyboard and screen reader users, since they let you skip past sections of content. Learn h
阅读全文
摘要:import {AuthProviders, FirebaseAuthState, FirebaseAuth, AuthMethods} from "angularfire2";import {Injectable} from "@angular/core";import {Subject, BehaviorSubject} from "rxjs";import {AuthInfo} from ...
阅读全文
摘要:After successfully login, we want something help to check whether user has already login or not. And we will use Observable to do that. Create AuthInf
阅读全文
摘要:import UIKit class AboutViewController : UIViewController @IBOutlet weak var scrollView: UIScrollView! override func viewDidLoad() { super.viewDidLoad() view.addSubview(scrollView) //...
阅读全文
摘要:To programmaictlly change the content of app, we need to contect storyboard to a view controller. To do that, we need to create new file call it 'Prod
阅读全文
摘要:First, you need to enable the email auth in Firebase console. Then implement the auth service: Because login method return Promise, we need to convert
阅读全文
摘要:We can build a template, use this template and pass in different context to make it reuseable:
阅读全文
摘要:Angular 2 templates have a special let syntax that allows you to define and pass a context when they’re being generated. We have template: And we defi
阅读全文
摘要:From Article: RESOLVING ROUTE DATA IN ANGULAR 2 Github If you know Anuglar UI router, you must know resolve function in ui router, which you can load
阅读全文
摘要:Derivations form the backbone of MobX and come in two flavors: computed values are values that can be derived from the state automatically. And reacti
阅读全文
摘要:Learn how to build a simple Node.js web server with Docker. In this lesson, we'll create a Dockerfile for a simple Node.js script, copy and build it i
阅读全文
摘要:In this lesson, we are going to learn how to integrate Redux Devtools into our Angular application. Redux Devtools is a live-editing time travel envir
阅读全文
摘要:Invariably the question that comes up when talking about Redux is how does one handle asynchronous operations in redux. For instance, how do we hand o
阅读全文
摘要:In this lesson, we are going to learn how to map our Angular component directly to our application store using the connect method on ngRedux. In Angul
阅读全文
摘要:This lesson covers flexbox in a reusable mixin that should cover most layout situations on your site. With variables and common defaults, this mixin w
阅读全文
摘要:Writing great ES6 style Promises for Node.js is only half the battle. Your great modules must include tests as well to ensure future iterations don't
阅读全文
摘要:Just sharing the learning experience related to @ngrx/store and @ngrx/effects. In my personal opinion, I fell there are tow different types of coding
阅读全文
摘要:Up to this point, we have created an effective, yet rudimentary, implementation of Redux by manually creating an application store, reducers and actio
阅读全文
摘要:At some point, you might need to udpate multi collections and those collections should all updated successfully, otherwise we don't update anything. Y
阅读全文
摘要:The first things we need to do is create a reducer: It has some default initialize data. What it does is just simply return the state. Then let's crea
阅读全文
摘要:Pleasea refer to Link
阅读全文
摘要:A part of Natural Language Processing (NLP) is processing text by “tokenizing” language strings. This means we can break up a string of text into part
阅读全文
摘要:The every method returns true or false based on whether or not every item in the array passes the condition you provide in a callback function. In thi
阅读全文
摘要:The key to being productive with Immutable JS is understanding how to update values that are nested. Using setIn you can place a new value directly in
阅读全文
摘要:The writeValue function allows you to update your internal model with incoming values, for example if you use ngModel to bind your control to data. Th
阅读全文
摘要:We can nest formGorup: We make password as an own group. So in html, we need to use formGroupName istead of formControlName. And how we check the valu
阅读全文