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
""" | |
修正微软拼音输入法无法添加多个格式化自定义短语的问题 | |
Author: Scruel Tao | |
""" | |
import os | |
import re | |
import pathlib | |
import traceback | |
from pathlib import Path |
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
@echo off | |
%1 start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~s0","::","%~dp0","runas",1)(window.close)&&exit | |
SETLOCAL EnableDelayedExpansion | |
set PROGRAM_PATH=%USERPROFILE%\anaconda3 | |
if not exist %PROGRAM_PATH% ( | |
set PROGRAM_PATH=%USERPROFILE%\mambaforge | |
) | |
if not exist %PROGRAM_PATH% ( |
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
@echo off | |
%1 start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c pushd ""%~dp0"" && ""%~s0"" ::","","runas",1)(window.close)&&exit | |
taskkill -IM "wslservice.exe" /F >nul 2>nul | |
taskkill -IM "wslhost.exe" /F >nul 2>nul | |
taskkill -IM "wsl.exe" /F >nul 2>nul | |
powershell.exe -WindowStyle Hidden -c "wsl" |
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
# Incremental completion for zsh | |
# by y.fujii <y-fujii at mimosa-pudica.net>, public domain | |
autoload -U compinit | |
zle -N self-insert self-insert-incr | |
zle -N vi-cmd-mode-incr | |
zle -N vi-backward-delete-char-incr | |
zle -N backward-delete-char-incr | |
zle -N expand-or-complete-prefix-incr |
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
Java 1 hr 58 mins ██████████████▓░░░░░░░░░ 46.3% | |
Markdown 37 mins ███████░░░░░░░░░░░░░░░░░ 14.8% | |
JSON 28 mins ██████░░░░░░░░░░░░░░░░░░ 11.1% | |
JavaScript 21 mins █████▒░░░░░░░░░░░░░░░░░░ 8.4% | |
TypeScript 17 mins █████░░░░░░░░░░░░░░░░░░░ 6.9% | |
PHP 11 mins ████▓░░░░░░░░░░░░░░░░░░░ 4.5% |
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
/*定义缓存数据 key 生成策略的bean | |
包名+类名+方法名+所有参数 | |
*/ | |
@Bean("wiselyKeyGenerator") | |
@Override | |
public KeyGenerator keyGenerator(){ | |
return new KeyGenerator() { | |
@Override | |
public Object generate(Object target, Method method, Object... params) { | |
StringBuilder sb = new StringBuilder(); |