10 2019 档案

摘要:Kubernetes relies on Probes to determine the health of a Pod container. A Probe is a diagnostic performed periodically by the kubelet on a container. 阅读全文
posted @ 2019-10-31 23:27 Zhentiw 阅读(139) 评论(0) 推荐(0) 编辑
摘要:Writing your own custom State Hook is not as a daunting as you think. To keep things simple, we'll refactor our text state value that uses useState an 阅读全文
posted @ 2019-10-31 20:56 Zhentiw 阅读(190) 评论(0) 推荐(0) 编辑
摘要:Similar to the State Hook, the Effect Hook is “first-class” in React and handy for performing side effects in function components. The Effect Hook is 阅读全文
posted @ 2019-10-31 20:51 Zhentiw 阅读(416) 评论(0) 推荐(0) 编辑
摘要:Which of the following is a PAAS option for hosting web apps on GCP? Which of the following is a IAAS option for hosting web apps on GCP? Which of the 阅读全文
posted @ 2019-10-29 20:43 Zhentiw 阅读(346) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-10-29 04:11 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-10-29 02:39 Zhentiw 阅读(1) 评论(0) 推荐(0) 编辑
摘要:1. Define a yml file: nginx.pod.yml: apiVersion: v1 kind: Pod metadata: name: my-nginx labels: app: nginx rel: stable spec: containers: - name: my-ngi 阅读全文
posted @ 2019-10-27 22:39 Zhentiw 阅读(206) 评论(0) 推荐(0) 编辑
摘要:1. Create and run a Pod kubectl run my-nginx --image=nginx:alpine We can run kubectl get all to see what has been created: 2. Delete a Pod: kubectl de 阅读全文
posted @ 2019-10-27 22:10 Zhentiw 阅读(147) 评论(0) 推荐(0) 编辑
摘要:1. Create a src/my-component/files/src/app directory to hold your templates. 2. Create an app.component.ts file in src/my-component/files/src/app and 阅读全文
posted @ 2019-10-25 18:08 Zhentiw 阅读(454) 评论(0) 推荐(0) 编辑
摘要:1. Install schematics cli: 2. Then run schematics to create a new blank project: It creates folder with number of files for you. 3. One important thin 阅读全文
posted @ 2019-10-25 17:51 Zhentiw 阅读(161) 评论(0) 推荐(0) 编辑
摘要:You can create your own state store, not using any state management libraray. You might have seen the partten: People create a Subject, then use abObs 阅读全文
posted @ 2019-10-25 16:20 Zhentiw 阅读(801) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-10-25 03:19 Zhentiw 阅读(1) 评论(0) 推荐(0) 编辑
摘要:The use case is similar to Twitter "like" button, you can click "click" button on different post, each "like" button are isolated, it preforms optimis 阅读全文
posted @ 2019-10-24 18:19 Zhentiw 阅读(383) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-10-22 03:04 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
摘要:{ // UI IMPROVEMENTS —————————————————— // Part 1. "editor.minimap.enabled": false, "workbench.editor.enablePreview": false, "explorer.openEditors.visible": 1, "workbench.star... 阅读全文
posted @ 2019-10-21 14:45 Zhentiw 阅读(235) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-10-21 00:59 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-10-18 01:29 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
摘要:TypeScript 2.8 adds the ability for a mapped type to either add or remove a particular modifier. Specifically, a readonly or ? property modifier in a 阅读全文
posted @ 2019-10-17 19:02 Zhentiw 阅读(145) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-10-17 01:26 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
摘要:For example we have a 'useState' function, which takes a state and a function to update the state: const useState = (state, setState) => { const newSt 阅读全文
posted @ 2019-10-16 20:40 Zhentiw 阅读(134) 评论(0) 推荐(0) 编辑
摘要:Disclaimer: please use this feature carefully. 阅读全文
posted @ 2019-10-15 15:21 Zhentiw 阅读(157) 评论(0) 推荐(0) 编辑
摘要:Basic navigation by using 'Navigator.push' & 'Navigator.pop()', for example, we have two screen, screen1 and screen2, we want to navigate between two 阅读全文
posted @ 2019-10-13 20:10 Zhentiw 阅读(201) 评论(0) 推荐(0) 编辑
摘要:For example, we want to have to button, looks similar to FloatingActionButton: But in the doc, it says to it is recommend to have only one floatingAct 阅读全文
posted @ 2019-10-13 19:43 Zhentiw 阅读(172) 评论(0) 推荐(0) 编辑
摘要:Most websites are quite static and adding some animations/transitions can improve the user experience by a lot. In this lesson we're going to learn ho 阅读全文
posted @ 2019-10-10 15:39 Zhentiw 阅读(262) 评论(0) 推荐(0) 编辑
摘要:The postshows you how to use the null coalescing operator (??) instead of logical or (||) to set default values in TypeScript 3.7 to prevent expected 阅读全文
posted @ 2019-10-10 15:25 Zhentiw 阅读(203) 评论(0) 推荐(0) 编辑
摘要:TypeScript 3.7 adds support for optional chaining. This lesson shows you how to use it in your code to handle properties that can be null or undefined 阅读全文
posted @ 2019-10-10 15:22 Zhentiw 阅读(432) 评论(0) 推荐(0) 编辑
摘要:Docs 阅读全文
posted @ 2019-10-10 03:00 Zhentiw 阅读(664) 评论(0) 推荐(0) 编辑
摘要:First thing first, let's define a action to update entity: The 'Update' interface has props: 'id, changes'. Component usage: Reducer: Effect: 阅读全文
posted @ 2019-10-08 21:54 Zhentiw 阅读(147) 评论(0) 推荐(0) 编辑
摘要:ng-container is using for grouping elments together, a bit similar to div. If you want to group some elements together, but don't want to break the DO 阅读全文
posted @ 2019-10-08 19:46 Zhentiw 阅读(164) 评论(0) 推荐(0) 编辑
摘要:1. First step is creating action creator Action name should be clear which page, which functionality, what is the action name "[Load Courses Effect] A 阅读全文
posted @ 2019-10-08 19:15 Zhentiw 阅读(562) 评论(0) 推荐(0) 编辑
摘要:Most web applications have to deal with asynchronous data at some point. Svelte 3 apps are no different, luckily Svelte allows us to await the value o 阅读全文
posted @ 2019-10-07 17:49 Zhentiw 阅读(255) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-10-06 01:55 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
摘要:We have a reoslver, which everytime we want visit '/courses' route, it will be triggered, then api will be called, data will be loaded. So how to prev 阅读全文
posted @ 2019-10-04 23:54 Zhentiw 阅读(1361) 评论(0) 推荐(0) 编辑
摘要:'sortCompoarer' is used with adapter when you want to sort the entites based on one prop, 'ids' will be also sorted accordingly to the new entities. 阅读全文
posted @ 2019-10-04 23:39 Zhentiw 阅读(354) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示