11 2019 档案
摘要://If you know a solution is not far from the root of the tree: BFS, because it is faster to get closer node //If the tree is very deep and solutions are rare: BFS, DFS will take a longer time becau...
阅读全文
摘要:<!DOCTYPE html> <html> <head> <title>Parcel Sandbox</title> <meta charset="UTF-8" /> <!-- Load TensorFlow.js --> <script src="https://cdn.jsdelivr.net
阅读全文
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
摘要:When to use describedby: For example you have a close button: When to use labelledby: For example you have Billing section, inside you have address fi
阅读全文
摘要:SQL databases are commonly used to store data; for example - your application could store user profile information in a database. Yous should never cr
阅读全文
摘要:Image is quite heavy in web traffic. it is about 53% whole web traffic. It is important to make sure loading image won't be a slow & bad experience to
阅读全文
摘要:In this lesson, we will be going over the attribute aria-expanded. Instead of using a class like .open we are going to use the aria-expanded attribute
阅读全文
只有注册用户登录后才能阅读该文。
摘要:For multi pages application, it is very slow to navgiate between page by page, because it needs to reload the full page. Portal can solve the problem
阅读全文
摘要:The prefers-reduced-motion CSS media feature is used to detect if the user has requested that the system minimize the amount of animation or motion it
阅读全文
摘要:VSCode Themes are a quick way to update the color scheme and syntax highlighting of your code, but you might find your favorite theme isn't quite perf
阅读全文
摘要:There is pretty good talk about performacne https://www.youtube.com/watch?v=puUPpVrIRkc It targets the low end device or poor network connection. Serv
阅读全文
摘要:const kOtherBubblePointer = BorderRadius.only( topRight: Radius.circular(30), bottomLeft: Radius.circular(30), bottomRight: Radius.circular(30), ); co
阅读全文
摘要:Let's say you set widget height to 200, but to different screen, there might not be enough space for the widget to display, in this case, you can use
阅读全文
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
摘要:const isPromise = obj => Boolean(obj) && typeof obj.then 'function'; This can be a tool save into your toolbox.
阅读全文
摘要:JavaScript is single-threaded, which can present some problems when creating an interactive user experience. If JavaScript runs too long while a user
阅读全文
只有注册用户登录后才能阅读该文。
摘要:It is recommended to use 'slice' over 'Array'. An array variable denotes the entire array; it is not a pointer to the first array element (as would be
阅读全文
摘要:Anroid Firebase Project setup: 1. In firebase console, cerate a Android app setup you can find in code: Find "applicationId", undef "defaultConfig", p
阅读全文
摘要:Docs Mixins are a way of reusing a class’s code in multiple class hierarchies.
阅读全文
摘要:window.matchMedia() allow to listen to browser window size changes and trigger the callback for different media query size. you can attach a listener
阅读全文
只有注册用户登录后才能阅读该文。
摘要:Before we publish our package, we want to make sure everything is set up correctly. We’ll cover versioning, preparing our package, adding a proper REA
阅读全文
摘要:TO debug NestJS code with Chrome dev tool, we can run: TO make it easier for us running this later, we can do: After running this script, you cannot s
阅读全文
摘要:Animation can be a powerful way to enhance a user experience. In this lesson, we'll walk through the creation of a card-flip animation, creating a nic
阅读全文
摘要:Similar to writing a custom State Hook, we’ll write our own Effect Hook called useStarWarsQuote, which returns a random quote and a loading state. Rem
阅读全文