上一页 1 ··· 327 328 329 330 331 332 333 334 335 ··· 492 下一页
摘要: What we want to do is checking if user write nested if statements which actually can combine to one: Notice that if statement can write with block sta 阅读全文
posted @ 2017-09-25 21:06 Zhentiw 阅读(330) 评论(0) 推荐(0)
摘要: We want to write a Babel Plugin, which move 'const versionRegex = /(/d+)\.(/d+)\.(/d+)/gi' out of function scope and put it into global scope. Code: A 阅读全文
posted @ 2017-09-24 18:26 Zhentiw 阅读(370) 评论(0) 推荐(0)
摘要: To write a simple Babel plugin, we can use http://astexplorer.net/ to help us. The plugin we want to write is: We want to trasnform the code which hig 阅读全文
posted @ 2017-09-24 18:24 Zhentiw 阅读(305) 评论(0) 推荐(0)
摘要: The advantage of RS256 over HS256 is RS256 no longer need to share the secret key between client and server side. To create a token, we need to privat 阅读全文
posted @ 2017-09-22 17:56 Zhentiw 阅读(1305) 评论(0) 推荐(0)
摘要: Here we want to test a toggle button component, when the button was click, state should change, style should change also. Toggle component: Test: 阅读全文
posted @ 2017-09-20 02:52 Zhentiw 阅读(684) 评论(0) 推荐(0)
摘要: For example we have a React comonent: -- A toggle button, we want to test. When it si toggle on, the color is a little bit darken than it's not. Testi 阅读全文
posted @ 2017-09-20 01:59 Zhentiw 阅读(426) 评论(0) 推荐(0)
摘要: For intergration tests, always remember when you create a 'mass' you should aslo clean up the 'mass'. For example when you start the server, you need 阅读全文
posted @ 2017-09-20 01:20 Zhentiw 阅读(216) 评论(0) 推荐(0)
摘要: In this lesson, we will create a fluid loading animation using Animations and Transformations in CSS3. Summary: 阅读全文
posted @ 2017-09-19 23:49 Zhentiw 阅读(161) 评论(0) 推荐(0)
摘要: We have express app: As you can see, we wrap Express App into a function 'startServer' and export it as default export. The return value of this funct 阅读全文
posted @ 2017-09-19 22:33 Zhentiw 阅读(392) 评论(0) 推荐(0)
摘要: Stateful session management: Store session which associate with user, and store in the menory on server. Sign Up: Password validation: Random bytes ge 阅读全文
posted @ 2017-09-19 01:52 Zhentiw 阅读(321) 评论(0) 推荐(0)
上一页 1 ··· 327 328 329 330 331 332 333 334 335 ··· 492 下一页