lucene's learning experience

Preface Learning material is version 4.10 of lucene, which is rather old. Look up the latest official documents of version 6.6 of lucene, and sort out the following differences in use. The order from shallow to deep is (Note: not according to version) 1. The Construction Method of IndexWriter Config 2. Directory generation method FSDirecto ...

Posted on Sun, 09 Jun 2019 19:15:55 -0700 by MarineX69

Deeply and Simply Understanding React High-order Components

Blog address: http://www.luckyjing.com/post... background knowledge Before we begin to talk about higher-order components, let's review the definition of higher-order functions: a class of functions that receive functions as inputs or output another function, called higher-order functions. For higher-order components, it describes components th ...

Posted on Sun, 09 Jun 2019 18:20:47 -0700 by binit

Event Distribution Mechanism-ScrollView Nested ListView Problem Generation Principle and Common Solutions

The previous article explained the mechanism of event distribution, and then continued to learn the mechanism of event distribution in a practical scenario. Scenario 2: ScrollView nests ListView, which can only display one item. Analysis: Since it's a high-level problem, first open ScrollView to see the onMeasure() method: @Override p ...

Posted on Sun, 09 Jun 2019 17:20:31 -0700 by Zan

H5 Video Play Solution

Two days ago, Yang Yang Yang H5 launched by the delegation was a hot circle of friends. There are mainly multi-video playback, pause.It sounds simple, but due to Tencent's white list restrictions, in Weichat browser and qq browser, the video without Tencent domain name in the video tag will be automatically full-screen, and video recommendation ...

Posted on Sun, 09 Jun 2019 17:08:47 -0700 by gchouchou

Summary Note 2 of Typeescript

I. Understanding of Generics Generics can be simply understood as type variables, which are special variables and are used only to represent types rather than values. 2. Define a simple generic 1. Defining generics function identity<T>(arg: T): T { return arg; } identity is called generic function 2. Call this func ...

Posted on Sun, 09 Jun 2019 16:17:10 -0700 by amit.patel

JavaScript Data Structure (3): One-way Link List and Two-way Link List

Translator: Crazy Technology HouseEnglish: https://code.tutsplus.com/art...Description: This article is translated from a series of articles, Data Structures With JavaScript, totaling four. The original author is Cho S. Kim, an engineer working in Silicon Valley, USA. This is the third article in this series. The two most common data structures ...

Posted on Sun, 09 Jun 2019 16:10:35 -0700 by Aureole

A New Understanding of Material Design

A New Understanding of Material Design I. Overview Material Design (original design) was proposed at the 2014 Google Conference in the hope of creating a new visual design language that can follow the classical rules of excellent design, along with innovative ideas and new technologies. Design Principles: Entity, vivid image, thoughtful and ...

Posted on Sun, 09 Jun 2019 11:30:25 -0700 by Dominator69

Animation summary (differentiator and estimator)

Intermediate animation classification Translate translation Scaling Scale Rotating rotate Gradient alpha Application scenarios 1. Start page, start button, fly-in effect can be used. 2.listview or recycleview entry into animation. Attribute animation Due to the limitation of only four kinds of changes in interpolation animation, at ...

Posted on Sat, 08 Jun 2019 16:07:31 -0700 by stevegg1965

Start developing iOS 10 - 19 with Swift and build the introduction page with UIPageViewController

Continue with the last article Start developing iOS 10 - 18 Search Bar and UISearchController with Swift This article uses UIPageViewController to build an introduction page, unlike LaunchScreen.storyboard's startup page. Add UIPageViewController to Storyboard Drag in a UIPageViewController at Storyboard. Modify related properties. Mod ...

Posted on Sat, 08 Jun 2019 15:36:48 -0700 by dokueki@gmail.com

WK WebView and Local Code Interaction

Starting with iOS 8.0, WK WebView should be used. Message Interaction WKWebView interacts with local programs in three ways: The first is to execute a JS at a specific loading stage of WebView content. Add a WKUserScript to the user content controller of WKWebView's configuration. Using WKUserContentController's addUserScript method, w ...

Posted on Sat, 08 Jun 2019 12:43:42 -0700 by KingPhilip