- 每天定时执行一个签到脚本
- 每当电脑从睡眠中唤醒时执行一个脚本
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
@Test | |
void t3() { | |
Supplier<Long> s = Suppliers.memoize(this::tt); | |
System.out.println("---------1"); | |
System.out.println(s.get()); | |
System.out.println("---------2"); | |
System.out.println(s.get()); | |
System.out.println("---------3"); | |
System.out.println(s.get()); | |
System.out.println("---------4"); |
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
Lists.newArrayList(Iterables.concat(list1, list2)); |
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
# custom IntelliJ IDEA properties (expand/override 'bin\idea.properties') | |
# 指定scratch的路径包括.http文件和Database写的.sql文件 | |
idea.scratch.path=/xxx |
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
private ResponseEntity<byte[]> getExportResponse(String fileName, String exportContent) { | |
HttpHeaders headers = new HttpHeaders(); | |
headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); | |
headers.setContentDispositionFormData("attachment", URLEncoder.encode(fileName, StandardCharsets.UTF_8)); | |
return new ResponseEntity<>(exportContent.getBytes(StandardCharsets.UTF_8), headers, HttpStatus.OK); | |
} |
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
netsh interface set interface "WLAN" disabled | |
netsh interface set interface "WLAN" enabled |
- groovy脚本
groovyScript("def result=\"${_1}\" + '() '; def result1=''; def params=\"${_2}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) { result1 += ', ' + params[i]; if (i==0) { result+= params[i] + ': {}, '; } else { result+= params[i] + ': {}, '; } }; return '\"' + result + '\"' + result1; ", methodName(), methodParameters());}}
- Template Text: log.debug(
$logText$ );
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
start /B proxychains "C:\Program Files\Google\Drive File Stream\79.0.2.0\GoogleDriveFS.exe" |
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
我有以下内容: | |
2. **pajama pants** ['pəˈdʒɑːmə pænts]: 睡裤(裤子)。 | |
3. **take advantage of**: 利用,充分利用。 | |
用nodepad++删除pajama pants、take advantage of以外的内容 | |
替换正则 .*\*\*(.*)\*\*.* 为 $1 |
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 | |
*/ |
NewerOlder