Skip to content

Instantly share code, notes, and snippets.

@LiWenGu
LiWenGu / IntelIJTrialReset.bat
Created December 31, 2021 08:19 — forked from VVATOR/IntelIJTrialReset.bat
How to Reset InteIIiJ IDEA Evaluation Key in Windows
cd "C:%HOMEPATH%\.IntelliJIdea*\config"
rmdir "eval" /s /q
del "options\other.xml"
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f
:: This will work for idea 2018.3 and later
::
:: It is Highly Advised to Purchase the JetBrain Softwares
:: This is only for the case You just want to Extend the
:: Trial Period and Evaluate the IDE for some more Time
@LiWenGu
LiWenGu / macos
Created October 10, 2020 09:04
[开发备用]
Lepton
Listen1
SiYuan
Reeder
Charles
uTools
vscode:picGo
idea+jar破解
Lens
KeePassXC
@LiWenGu
LiWenGu / offer3.java
Last active October 10, 2020 09:33
[leetcode]
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 April 14, 2021 02:49
updated by Listen1(https://listen1.github.io/listen1/) at 2021/4/14上午10:49:05

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

@LiWenGu
LiWenGu / createIndex.java
Created February 20, 2019 09:35
[lucene]
/**
* @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 January 24, 2019 07:37
[XPath] XPath parse DOM #java
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();