This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sukka's Ruleset - Sogou Input (QuanX Version) | |
# Last Updated: 2024-10-20 | |
# 由 Surge 规则转换而来 | |
HOST,this_ruleset_is_made_by_sukkaw.ruleset.skk.moe,reject | |
HOST-SUFFIX,beacon.qq.com,reject | |
HOST-SUFFIX,sginput.qq.com,reject | |
HOST-SUFFIX,get.sogou.com,reject | |
HOST-SUFFIX,ime.sogou.com,reject | |
HOST-SUFFIX,macime.sogou.com,reject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#@author liukl | |
# 设置要搜索的目录 | |
search_dir="/path/to/your_project/.git/objects" | |
# 切换到当前目录 | |
cd "$search_dir" | |
# 列出当前目录下的所有子目录 | |
for dir in *; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.itextpdf.text.Document; | |
import com.itextpdf.text.DocumentException; | |
import com.itextpdf.text.Image; | |
import com.itextpdf.text.PageSize; | |
import com.itextpdf.text.pdf.*; | |
import lombok.extern.slf4j.Slf4j; | |
import org.xhtmlrenderer.pdf.ITextFontResolver; | |
import org.xhtmlrenderer.pdf.ITextRenderer; | |
import java.io.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 是否为柜号 | |
* | |
* @param containerNumber 输入值 | |
* @return 真/假 | |
*/ | |
public static Boolean isContainerNumber(String containerNumber) { | |
if (containerNumber.length() == 11) { | |
String regEx = "^[a-zA-Z]{4}\\d{7}$"; | |
Pattern p = Pattern.compile(regEx); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MapFactory { | |
private HashMap<String, Object> map = new HashMap<>(); | |
public HashMap<String, Object> getMap() { | |
return map; | |
} | |
public MapFactory setMap(HashMap<String, Object> map) { | |
this.map = map; |