Skip to content

Instantly share code, notes, and snippets.

@qxj
qxj / 小米电视精简.bat
Last active Mar 21, 2021
小米电视精简,删除无用软件包,同时替换tvlauncher,小米电视4X 65寸测试ok。https://blog.zgcwkj.cn/archives/143.htmlhttps://www.znds.com/tv-1170521-1-1.html
View 小米电视精简.bat
@echo off
cd /d "%~dp0"
echo 温馨提示:若电视执行脚本后异常,恢复方法“关电视,拔电源,等十秒后,然后插电源,同时按住遥控器主页键和菜单键不放,开电视,然后进入recovery,清除数据后重启,就会恢复原厂设置了。
echo 打开设置-关于-产品型号,对着产品型号连点七次,开发模式就开启了,之后返回账号与安全,找到adb调试,并打开,接着进入网络设置,记住自己的IP地址
echo 语音搜索西游记,播放,安装云视听极光插件,腾讯视频必须,否则没法播放
echo 语音搜索汪汪队,播放,安装播放插件
set /p var=按回车键继续:
echo 请输入电视IP地址,按回车键确认,此时电视会提示是否连接电脑,选择确认即可;
@qxj
qxj / hypothesis.py
Created Apr 7, 2020
t test, sign test, wilcoxon signed rank test, and 0/1 distribution test.
View hypothesis.py
#!/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 Mar 24, 2020
Generate tfrecord in MapReduce
View DecodeProcessor.java
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 / README.md
Last active Jul 10, 2019
Laplacian Eigenmap
View README.md

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 Apr 9, 2019
Graph embedding projector demo
View README.md

Graph embedding projector demo

View patch_AppleHDA.kext.log
$ sh audio_cloverALC-130.sh
Agreement
The audio_cloverALC script is for personal use only. Do not distribute
the patch, any or all of the files or the resulting patched AppleHDA.kext
for any reason without permission. The audio_cloverALC script is
provided as is and without any kind of warranty.
File: audio_cloverALC-130.command_v0.5
Release Mode
@qxj
qxj / surfingkeys.js
Last active Oct 23, 2017
configuration for Surfingkeys
View surfingkeys.js
// surfingkeys.js
//
// - map: normal mode
// - imap: insert mode
// - vmap: visual mode
// - cmap: omnibar mode
//
// Simluate Vim keybind
map("<Ctrl-[>", "<Esc>");
@qxj
qxj / .cvimrc
Last active Oct 21, 2017
configuration for cVim (chrome-vim)
View .cvimrc
" .cvimrc
" vim: ts=2 sts=2 sw=2 expandtab
" let configpath = '~/.cvimrc'
" set localconfig
" Settings
set autoupdategist
set hud
set smoothscroll
View 1.1.plane_fitting.py
'''
需要拟合的平面:y = W1 * x1_data + W2*x2_data + b,其中,已知x1_data、x2_data和y,但是都包含一点噪声。
'''
import tensorflow as tf
import numpy as np
# Create 100 phony x, y data points in NumPy, y = x * 0.1 + 0.3
x1_data = np.random.rand(100).astype(np.float32)
x2_data = np.random.rand(100).astype(np.float32)