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
:: Created by: Shawn Brink | |
:: http://www.tenforums.com | |
:: Tutorial: http://www.tenforums.com/tutorials/5662-notification-area-icons-reset-windows-10-a.html | |
@echo off | |
set regPath=HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify | |
set regKey1=IconStreams | |
set regKey2=PastIconsStream |
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
set ai | |
"自动缩进宽度 | |
set sw=4 | |
set ts=4 | |
"关闭高亮显示 | |
set nohlsearch | |
set is | |
set ignorecase | |
set smartcase |
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 org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.client.methods.HttpPost; | |
import org.apache.http.entity.StringEntity; | |
import org.apache.http.impl.client.HttpClientBuilder; | |
import org.apache.http.util.EntityUtils; | |
import org.json.JSONObject; | |
public class ChatGPT { |
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
"" Source your .vimrc | |
"source ~/.vimrc | |
"" -- Suggested options -- | |
" Show a few lines of context around the cursor. Note that this makes the | |
" text scroll if you mouse-click near the start or end of the window. | |
set number relativenumber | |
set idearefactormode=keep | |
set ideajoin | |
set surround |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false | |
}, |
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
# 使用scoop安装java所需开发环境 | |
$Env:HTTP_PROXY = "http://127.0.0.1:8889" | |
$Env:HTTPS_PROXY = "http://127.0.0.1:8889" | |
scoop | |
if (!$?) { | |
Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
iwr -useb get.scoop.sh | iex | |
} | |
scoop bucket add java | |
scoop bucket add extras |
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
@echo off | |
REM 文件过滤器 | |
set file_filter=*.java *.js *.css | |
REM 指定原目录 | |
set src_dir=D:\IdeaProjects\agk-health | |
REM 指定输出文件 | |
set output_file=D:\IdeaProjects\wordcount\a.log | |
cd %src_dir% |
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
package com.agk.voice.util; | |
import java.time.LocalDateTime; | |
import java.time.format.DateTimeFormatter; | |
public class DateUtil { | |
public static String processDate(String dateTime) { | |
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("EEE MMM dd HH:mm:ss zzz yyyy"); | |
LocalDateTime localDateTime = LocalDateTime.parse(dateTime, dateTimeFormatter); |
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 java.util.Random; | |
import java.util.Scanner; | |
/** | |
* given a number let machine guess don't lie | |
* 0 - true 1 -false | |
*/ | |
public class MachineGuessNumber { | |
public static void main(String args[]) { |
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
package com.alibaba.nls.client; | |
import com.alibaba.fastjson.JSONObject; | |
import com.aliyuncs.CommonRequest; | |
import com.aliyuncs.CommonResponse; | |
import com.aliyuncs.DefaultAcsClient; | |
import com.aliyuncs.IAcsClient; | |
import com.aliyuncs.exceptions.ClientException; | |
import com.aliyuncs.http.MethodType; | |
import com.aliyuncs.profile.DefaultProfile; |
NewerOlder