• Taro integrates Redux to get started quickly


    This article is suitable for users who have a certain basis of react and redux. Foreword of foreword Recently, it is a multi terminal development framework from Jingdong concave convex laboratoryTaroThe official profile of taro isUse react syntax to generate multi terminal application with one key(including Applet / H5 / fast application / RN, etc.), […]

  • Front end data structure and algorithm (6): four traversal methods of binary tree and their applications


    preface In the last chapter, we learned from0reach1This chapter introduces more operations about binary tree, that is, traversing the tree, and accessing each node of the tree. It mainly includes pre order traversal, middle order traversal, post order traversal and sequence traversal. The first three are also called depth first traversal(DFS)The breadth of traversal sequence […]

  • [electron] Netease cloud transcoding client


    preface Recently, I need to use some accompaniment. I found that many players need money to download songs. I can listen to them but can’t download them. As a poor B, I can only figure out how to whore it~ I happened to see an article when I was browsing SFHow to cache Netease cloud […]

  • The most elegant non recursive traversal template of binary tree


    Leetcode 144. Preorder traversal of binary trees The right child is the first to press the stack, and then the left child. Due to the characteristics of the stack, the left child is taken out first, and then the right child is taken outRoot left right。 class Solution { public: vector<int> preorderTraversal(TreeNode* root) { vector<int> […]

  • Zooteam front end weekly issue 92


    Zhengcaiyun front end tabloid No.92 For more information on past tabloids, please visit:https://weekly.zoo.team 1.New features of ECMAScript 2020 The latest features added to JavaScript in ECMAScript 2020 by Thomas Findlay github.com/xitu/gold -m… translator: 2.leonardomso/33-js-concepts: ???? 33 concepts every JavaScript developer should know. ???? 33 concepts every JavaScript developer should know. – leonardomso/33-js-concepts 3.yangshun/front-end-interview-handbook: ???? Almost […]

  • Traversal of trees


    Node structure struct node { int val; struct node *left; struct node *right; }; Preorder traversal void pre_order_traveral(struct node *head) { std::stack<struct node *> data_stack; data_stack.emplace(head); while(!data_stack.empty()) { struct node *n = data_stack.top(); data_stack.pop(); std::cout << n->val << ” “; if (n->right != nullptr) { data_stack.emplace(n->right); } if (n->left != nullptr) { data_stack.emplace(n->left); } } […]

  • Traversal of binary tree


    The traversal methods of binary tree include pre order, middle order, post order, hierarchy and Morris traversal. Morris traverses the binary tree and marks the current node as cur Cur has no left child: Cur moves to the right child Cur has left children: Find the rightmost node of the left subtree of cur and […]

  • Pattern matching of regular expressions


    preface Regular expression and pattern matching are the main knowledge used by the front-end when processing strings. This part of the notes are made with XMIND, so paste the contents of the notes directly.(click on the picture and click on the view image below to see a large and clear picture.) text

  • Git add branch comment


    preface Sometimes there are too many branches, so we can’t know what the functions of branches at a glance, so we need to add notes to the branches add to We can add comments via built-in commands git config branch.{branch_ Name}. Description here is a comment see git config branch.{branch_name}.description View all First install git […]

  • Preprocessing HTML files with HTML webpack plugin


    1、 Preface First of all, I’d like to sort out some articles related to webpack Post processing CSS files with webpack Implementation of CSS sprites based on webpack Stylus series — webpack spritesmith with stylus After the third article above, the efficiency of CSS development has been improved to a great extent, but there are […]

  • XPath and CSS (parsel)


    preface XPath is the XML path language Cascading style sheets is a computer language used to express HTML or XML file styles Parsel is an independent parser from scratch, which can extract XML or HTML with XPath or CSS example Methods for XPath to get string inclusion >>> from parsel import Selector >>> htmlText = […]

  • Eureka source code reading (2) – Analysis of eurekaserver source code


    preface Eurekaserver is a combination of Eureka client, Eureka core and Eureka resources. It serves as a registry and a service discovery center, and provides a visual view of the service volume. content The flow chart of Eureka server source code is as follows: