- common-cold(普通感冒)
- flu(流感)
- Tonsillitis(扁桃体炎)
- Strep throat(咽喉炎)
This file contains 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 java.io.*; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* 根据insert sql生成回滚的delete sql | |
* | |
* @author yanganyu | |
* @date 2023-06-24 | |
*/ |
This file contains 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
// ==UserScript== | |
// @name 简书专注模式 | |
// @namespace https://github.com/codethereforam/ | |
// @version 0.1 | |
// @description 去除简书一切不必要的页面元素 | |
// @author https://github.com/codethereforam/ | |
// @match https://*.jianshu.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=jianshu.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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
for /F %%i in ('powershell -command "[System.Environment]::OSVersion.Version.Major"') do set VER=%%i | |
msg "%username%" %VER% |
This file contains 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
package main | |
import ( | |
"flag" | |
"log" | |
"net/http" | |
) | |
func main() { | |
port := flag.String("p", "8100", "port to serve on") |
This file contains 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
!`:: | |
WinGetClass, OldClass, A | |
WinGet, ActiveProcessName, ProcessName, A | |
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName% | |
IF WinClassCount = 1 | |
Return | |
loop, 2 { | |
WinSet, Bottom,, A | |
WinActivate, ahk_exe %ActiveProcessName% | |
WinGetClass, NewClass, A |
This file contains 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
/** | |
* 如果一个集合为空则返回填充一个对象的新list(不修改原list) | |
* | |
* @param list list | |
* @param constructor constructor | |
* @param <T> type of list's element | |
* @return 至少有一个元素的集合 | |
* @author yanganyu | |
* @date 2022/1/14 | |
*/ |
This file contains 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
@Slf4j | |
@RunWith(MockitoJUnitRunner.class) | |
public class MockRedisTest { | |
private StringRedisTemplate stringRedisTemplate; | |
@Before | |
public void setUp() { | |
stringRedisTemplate = Mockito.mock(StringRedisTemplate.class); | |
ValueOperations valueOperations = Mockito.mock(ValueOperations.class); | |
when(stringRedisTemplate.opsForValue()).thenReturn(valueOperations); |
This file contains 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 org.hibernate.validator.HibernateValidator; | |
import javax.validation.ConstraintViolation; | |
import javax.validation.Validation; | |
import javax.validation.Validator; | |
import java.util.Objects; | |
import java.util.Set; | |
/** | |
* javax校验工具类 | |
* |