摘要:
依赖: elasticsearch==7.17.9 eshelpercore.py: #!/usr/bin/python3 # coding=utf-8 import datetime import os import ssl from elasticsearch import Elasticsea 阅读全文
摘要:
本方法参考自:golang 获取每年法定节假日 - 简书 (jianshu.com) 依赖: go 1.20 require ( github.com/Azure/go-autorest v14.2.0+incompatible // indirect github.com/Azure/go-aut 阅读全文
摘要:
LocalDateTime dateToLocalDateTime(Date dateToConvert) { return dateToConvert.toInstant() .atZone(ZoneId.systemDefault()) .toLocalDateTime(); } long lo 阅读全文
摘要:
基于版本: <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.3.14</version> </dependency> logback.xml: <?x 阅读全文
摘要:
import os from fontTools.ttLib import TTFont import json def toUnicode(oneStr): t = oneStr if t[:3] == 'uni': t = t.replace('uni', '\\u') if t[:2] == 阅读全文
摘要:
import random def generate_mac_address(): mac = [random.choice('0123456789ABCDEF') for _ in range(12)] p = 2 for i in range(5): mac.insert(p, '-') p + 阅读全文
摘要:
@Getter @AllArgsConstructor public enum InsertQueueEnum { A(30000, 10, TimeUnit.SECONDS, 2, 1000), ; private final int capacity;//队列长度 private final i 阅读全文
摘要:
依赖(如果非jdk8则可以使用更新的HikariCP和logback): <dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId> <version>4.0.3</version> <exclusions 阅读全文
摘要:
该方法参考自一篇博客java判断是否是emoji字符(史上最全)_isemojicharacter-CSDN博客 经过简单封装如下: public class EmojiFilter { private EmojiFilter() { } /** * 过滤emoji 或者 其他非文字类型的字符 * 阅读全文
摘要:
基于RestHighLevelClient7.17.7: @Slf4j @NoArgsConstructor(access = AccessLevel.PRIVATE) public final class ElasticsearchClientService { public static Res 阅读全文