Skip to content

Instantly share code, notes, and snippets.

@LiWenGu
LiWenGu / macos
Created Oct 10, 2020
[开发备用]
View macos
Lepton
Listen1
SiYuan
Reeder
Charles
uTools
vscode:picGo
idea+jar破解
Lens
KeePassXC
View offer3.java
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
class Solution {
public int findRepeatNumber(int[] nums) {
Map<Integer, Integer> map = new HashMap<>();
for (int num : nums) {
if (map.containsKey(num)) {
@LiWenGu
LiWenGu / listen1_aha_playlist.md
Last active Apr 14, 2021
updated by Listen1(https://listen1.github.io/listen1/) at 2021/4/14上午10:49:05
View listen1_aha_playlist.md

本歌单由Listen1创建, 歌曲数:462,歌单数:2,点击查看更多

View createIndex.java
/**
* @Author liwenguang
* @Date 2019-02-20 15:40
* @Description 基于 tika 解析文件内容为字符串,使用 lucene 建立索引
*/
@Slf4j
public class CreateIndex {
public static final String INDEX_PATH = "hello_lucene/src/main/resources/";
@LiWenGu
LiWenGu / getResources
Last active Jan 24, 2019
[XPath] XPath parse DOM #java
View getResources
public void testXPath() throws Exception {
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setValidating(true);
documentBuilderFactory.setNamespaceAware(false);
documentBuilderFactory.setIgnoringComments(true);
documentBuilderFactory.setIgnoringElementContentWhitespace(false);
documentBuilderFactory.setCoalescing(false);
documentBuilderFactory.setExpandEntityReferences(true);
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();