Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
int lambda(a, b) {
if(a == 0) {
return b;
}else {
a = a - 1;
b = b + 1;
return lambda(a, b);
}
}
@watermelo2
watermelo2 / pom.xml
Last active May 9, 2022 07:55
POM配置仓库
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>...</groupId>
<artifactId>...</artifactId>
<packaging>...</packaging>
<version>...</version>
Connected to the target VM, address: '127.0.0.1:58760', transport: 'socket'
17:13:51.555 [main] DEBUG reactor.util.Loggers$LoggerFactory - Using Slf4j logging framework
17:13:51.562 [main] DEBUG reactor.core.publisher.Hooks - Enabling stacktrace debugging via onOperatorDebug
17:13:55,329 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3277e499 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
17:13:55,329 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3277e499 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
17:13:55,336 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@37fbe4a8 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
17:13:55,336 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@37fbe4a8 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
17:13:55,341 |-WARN in ch.qos.logback.core.rolling.SizeA
package cn.seeiner.uim;
import static org.junit.jupiter.api.Assertions.assertThrows;
import cn.hutool.core.collection.CollectionUtil;
import com.google.common.collect.Lists;
import java.util.Collection;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
[ERROR] Failed to execute goal com.societegenerale.commons:arch-unit-maven-plugin:2.7.2:arch-test (default) on project seeiner-uims-server: ArchUnit Maven plugin reported architecture
failures listed below :Rule Violated - cn.seeiner.archverify.LayerDependencyRulesTest
[ERROR] Architecture Violation [Priority: MEDIUM] - Rule 'no classes that reside in a package '..controller..' should depend on classes that reside in a package '..controller..', becau
se Controller涓嶅厑璁镐簰鐩镐緷璧?!' was violated (54 times):
@watermelo2
watermelo2 / ShortUUID.java
Created July 21, 2021 03:05
项目短编号生成工具类
package cn.seeiner.uim.common;
import cn.hutool.core.util.IdUtil;
public class ShortUUID {
private static final String[] CHARS =
new String[] {
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r",
"s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
@watermelo2
watermelo2 / err.txt
Created August 18, 2021 11:47
npm报红信息
Binary found at D:\Install\wechat\locales\WeChat Files\wxid_h2f60apr8joa22\FileStorage\File\2021-08\excel-demo\node_modules\node-sass\vendor\win32-x64-83\binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
@watermelo2
watermelo2 / pom.xml
Created September 22, 2021 02:48
单元测试配置文件读取Maven变量
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>mapper/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
package cn.seeiner.uim.controller.internal;
import cn.hutool.core.collection.CollectionUtil;
import cn.seeiner.uim.api.entity.res.AccountResDto;
import cn.seeiner.uim.api.entity.res.TemporaryAccountResDto;
import cn.seeiner.uim.entity.Account;
import cn.seeiner.uim.entity.AccountTemporary;
import cn.seeiner.uim.entity.CarOwner3rdInformation;
import cn.seeiner.uim.entity.request.AddCarOwnerAccountRequest;
import cn.seeiner.uim.entity.request.AddCarOwnerTemporaryAccountRequest;
package cn.seeiner.uim.tool;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.util.Base64;