Skip to content

Instantly share code, notes, and snippets.

View Jackiexiao's full-sized avatar

jackiexiao Jackiexiao

View GitHub Profile
@Jackiexiao
Jackiexiao / esc-switch-en.json
Created July 3, 2024 10:03
Karabiner 设置 ESC 切换英文输入法
{
"description": "短按 ESC -> ESC 并切换英文输入法",
"manipulators": [
{
"conditions": [
{
"input_sources": [
{
"language": "en"
}
@Jackiexiao
Jackiexiao / gist:57aa4abbff675a3ac6a57e55a9a0fde7
Last active February 8, 2024 09:29
Streamlit subprocess streaming output to the web page / redirect std out
"""
Run subprocess command and stream output to the web page
streamlit run web_ui.py --server.port 10006 --browser.gatherUsageStats False
streamlit >=1.30
# print_numbers.py
import time
@Jackiexiao
Jackiexiao / generals.io-clone
Created May 18, 2023 14:33
A collection of generals.io clone github repository
A collection of generals.io clone repo
https://github.com/GenniaApp/Gennia
https://github.com/dhyegocalota/generals-io-webapp
https://github.com/seveibar/boxarmy
https://github.com/Toseic/Generals-chess
https://github.com/little-dude/generals-rs
https://github.com/montsilen/generals
https://github.com/zidinghe/generals-AI
https://github.com/neolefty/hexerals
@Jackiexiao
Jackiexiao / generate_en_us_with_cmu_data_using_modelscope.py
Created December 12, 2022 04:03
使用ModelScope生成带CMU音素标注的美式英文数据1男1女
"""
使用Modelscope开源美式英文TTS生成语音数据,仅供学习分享交流之用,如有侵权,请联系我删除
Use Modelscope's OpenSource TTS to generate English(en-us) speech data, for learning and sharing only, if there is any infringement, please contact me to delete it
下载地址 Download link
https://pan.baidu.com/s/1qUjBhCVknOTV-xm4VBEuDQ?pwd=uqbd
数据示例data example:
annie|annie_LJ001-0002_0.wav|IH0 N #1 B IY1 IH0 NG #1 K AH0 M P EH1 R AH0 T IH0 V L IY0 #1 M AA1 D ER0 N #4|in being comparatively modern.
@Jackiexiao
Jackiexiao / compare_torch_flops_lib.ipynb
Created September 3, 2022 01:41
compare_torch_flops_lib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jackiexiao
Jackiexiao / streamlit_recorder.py
Last active September 23, 2021 10:18
recoder base on streamlit-webrtc
"""
recorder based on streamlit-webrtc
streamlit run st_recorder.py --server.port 8606
"""
from streamlit_webrtc import (
webrtc_streamer,
WebRtcMode,
WebRtcStreamerContext,
)
@Jackiexiao
Jackiexiao / 快速摘录内容到RemNote中.ahk
Created May 20, 2021 06:00
ctrl + alt + C 快速摘录内容到RemNote中.ahk
^!c:: ;~将文字发送到RemNote中去
send,^c
sleep,50
WinWait("ahk_exe RemNote.exe")
send,^v
send,{Enter}
sleep,100
mousemove, %A_CaretX% ,%A_CaretY%