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: '... 阅读全文
posted @ 2016-11-30 06:07 Zhentiw 阅读(503) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-29 21:04 Zhentiw 阅读(220) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-29 20:32 Zhentiw 阅读(397) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-28 21:29 Zhentiw 阅读(456) 评论(0) 推荐(0) 编辑
摘要:Apply filters like blur, brightness, saturation and hue to images. Combined with CSS blend modes, you can create powerful image effects using only cod 阅读全文
posted @ 2016-11-28 17:19 Zhentiw 阅读(129) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-28 03:50 Zhentiw 阅读(471) 评论(0) 推荐(0) 编辑
摘要: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" 阅读全文
posted @ 2016-11-27 20:41 Zhentiw 阅读(177) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-25 20:43 Zhentiw 阅读(515) 评论(0) 推荐(0) 编辑
摘要:Article 阅读全文
posted @ 2016-11-25 00:51 Zhentiw 阅读(469) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-22 16:16 Zhentiw 阅读(165) 评论(0) 推荐(0) 编辑
摘要:import {AuthProviders, FirebaseAuthState, FirebaseAuth, AuthMethods} from "angularfire2";import {Injectable} from "@angular/core";import {Subject, BehaviorSubject} from "rxjs";import {AuthInfo} from ... 阅读全文
posted @ 2016-11-22 03:18 Zhentiw 阅读(930) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-22 03:15 Zhentiw 阅读(342) 评论(0) 推荐(0) 编辑
摘要:import UIKit class AboutViewController : UIViewController @IBOutlet weak var scrollView: UIScrollView! override func viewDidLoad() { super.viewDidLoad() view.addSubview(scrollView) //... 阅读全文
posted @ 2016-11-20 18:14 Zhentiw 阅读(178) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-20 05:28 Zhentiw 阅读(559) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-20 04:49 Zhentiw 阅读(301) 评论(0) 推荐(0) 编辑
摘要:We can build a template, use this template and pass in different context to make it reuseable: 阅读全文
posted @ 2016-11-18 05:28 Zhentiw 阅读(397) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-17 19:12 Zhentiw 阅读(242) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-17 03:26 Zhentiw 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-16 20:47 Zhentiw 阅读(363) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-15 20:56 Zhentiw 阅读(298) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-15 19:03 Zhentiw 阅读(387) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-14 20:31 Zhentiw 阅读(504) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-14 19:26 Zhentiw 阅读(458) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-14 16:56 Zhentiw 阅读(346) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-11 21:01 Zhentiw 阅读(273) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-11 04:26 Zhentiw 阅读(383) 评论(0) 推荐(0) 编辑
摘要:Up to this point, we have created an effective, yet rudimentary, implementation of Redux by manually creating an application store, reducers and actio 阅读全文
posted @ 2016-11-10 16:38 Zhentiw 阅读(708) 评论(0) 推荐(0) 编辑
摘要:At some point, you might need to udpate multi collections and those collections should all updated successfully, otherwise we don't update anything. Y 阅读全文
posted @ 2016-11-10 06:21 Zhentiw 阅读(306) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-09 17:25 Zhentiw 阅读(521) 评论(0) 推荐(0) 编辑
摘要:Pleasea refer to Link 阅读全文
posted @ 2016-11-08 16:39 Zhentiw 阅读(221) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-08 00:37 Zhentiw 阅读(217) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-07 19:22 Zhentiw 阅读(146) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-07 19:14 Zhentiw 阅读(171) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-01 21:55 Zhentiw 阅读(525) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2016-11-01 05:32 Zhentiw 阅读(423) 评论(0) 推荐(0) 编辑