Skip to content

Instantly share code, notes, and snippets.

@qxj
qxj / tts_demo.py
Created March 24, 2023 07:43
Azure text to speech demo
#!/usr/bin/env python3
# coding: utf-8
"""
Speech synthesis samples for the Microsoft Cognitive Services Speech SDK
https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/python/console/speech_synthesis_sample.py
"""
import os
@qxj
qxj / README.md
Last active January 27, 2023 03:44 — forked from ascendbruce/README.md
Use mac style keyboard shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style keyboard shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that:

  1. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
  2. To use cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line), You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys due to conflicting.
@qxj
qxj / 小米电视精简.bat
Last active October 10, 2022 07:38
小米电视精简,删除无用软件包,同时替换tvlauncher,小米电视4X 65寸测试ok。https://blog.zgcwkj.cn/archives/143.htmlhttps://www.znds.com/tv-1170521-1-1.html
@echo off
cd /d "%~dp0"
echo 温馨提示:若电视执行脚本后异常,恢复方法“关电视,拔电源,等十秒后,然后插电源,同时按住遥控器主页键和菜单键不放,开电视,然后进入recovery,清除数据后重启,就会恢复原厂设置了。
echo 打开设置-关于-产品型号,对着产品型号连点七次,开发模式就开启了,之后返回账号与安全,找到adb调试,并打开,接着进入网络设置,记住自己的IP地址
echo 语音搜索西游记,播放,安装云视听极光插件,腾讯视频必须,否则没法播放
echo 语音搜索汪汪队,播放,安装播放插件
set /p var=按回车键继续:
echo 请输入电视IP地址,按回车键确认,此时电视会提示是否连接电脑,选择确认即可;
@qxj
qxj / hypothesis.py
Created April 7, 2020 04:13
t test, sign test, wilcoxon signed rank test, and 0/1 distribution test.
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
t test, sign test, wilcoxon signed rank test, and 0/1 distribution test.
"""
import numpy as np
from scipy.special import comb
from scipy.stats import norm
from scipy.stats import t
@qxj
qxj / DecodeProcessor.java
Created March 24, 2020 12:30
Generate tfrecord in MapReduce
package net.jqian.tutorial.tfrecord;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.mapreduce.Mapper;
import org.tensorflow.example.*;
import java.util.*;
@qxj
qxj / ___78.kbd.json
Last active September 28, 2021 03:58
小鲸鱼78
[
{
"name": "小鲸鱼78"
},
[
{
"a": 6
},
"Esc",
{
@qxj
qxj / README.md
Last active July 10, 2019 02:41
Laplacian Eigenmap

Laplacian Eigenmap

  1. Build graph by KNN, weight edge by heat kernel.
  2. Calc laplcian matrix's eigenvalue & eigenvector.
@qxj
qxj / README.md
Last active April 9, 2019 07:45
Graph embedding projector demo

Graph embedding projector demo

@qxj
qxj / Q60.kbd.json
Last active September 28, 2021 04:00
Q60
[
{
"name": "Q60",
"author": "jqian",
"switchMount": "cherry",
"plate": true
},
[
"~\n`",
"!\n1",