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
#Requires AutoHotkey v2.0 | |
; recommended for performance and compatibility with future autohotkey releases. | |
#UseHook | |
#SingleInstance force | |
InstallKeybdHook() | |
SendMode "Input" | |
/** |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>PCM to MP3 Player (with Queue and Delay)</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lamejs/1.2.0/lame.min.js"></script> | |
</head> | |
<body> |
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
# Config file for evremap (https://github.com/wez/evremap) | |
# usage: | |
# sudo target/release/evremap remap /path/to/joey_archlinux.toml | |
# device_name = "AT Translated Set 2 keyboard" | |
device_name = "Apple Inc. Magic Keyboard with Touch ID" | |
# add phys when multiple device_name with same name exists | |
phys = "usb-0000:02:00.0-6/input1" | |
# Hold capslock for ctrl, tap for esc |
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
# whisper https://github.com/openai/whisper | |
# 使用GPU做ASR,因为 1080 显存限制,使用medium比较合适(medium 使用约 5G 显存,大于 10G 显存可以用 large) | |
# T4 GPU,16G 显存,跑 meidum 时耗比大概 0.36(303 秒的音频用了 108s),显存占用 4.8G,显卡利用率在 85% 左右 | |
# --word_timestamps True --highlight_words True 显示 word-level 的时间戳(不加为 sentence-level) | |
whisper --model medium --language Chinese --verbose True --word_timestamps True --highlight_words True .\download.mp4 | |
# 使用 CPU | |
whisper --device cpu --threads 10 --model large --language Chinese --verbose True --word_timestamps True --highlight_words True .\download2.mp4 |
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
#include <iostream> | |
#include <functional> | |
using namespace std; | |
// -std=c++17 | |
template <typename In, typename Out> | |
class Filter { | |
public: |
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
! ref: https://wiki.archlinux.org/title/Xmodmap | |
! exec: xmodmap ~/.Xmodmap | |
! Set Keyboard::Dispatch to 'keyCode' in VSCode, otherwise capslock remapping does't work | |
! ref: https://github.com/microsoft/vscode/issues/23991 | |
! auto startup with system: | |
! add following command to 'Startup Applications Preferences' app on Ubuntu | |
! /bin/bash -c 'xmodmap /home/xueshi/.Xmodmap' | |
clear lock | |
! Map Caplock key to Mode_switch key, we use it as 'Hyper' key later |
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
#include <iostream> | |
#include <utility> | |
#include <vector> | |
using namespace std; | |
class SimpleString { | |
public: | |
SimpleString(int s, const char* content): size(s+1), string(new char[s+1]) { | |
for (int i = 0; i < size - 1; i++) { |
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 smoothscroll | |
let typelinkhintsdelay = 0 | |
"let showtabindices = 1 | |
let barposition = "top" | |
let searchlimit = 50 | |
"let hintcharacters = "abc123" | |
"===============Custom Key maps=================== | |
"打开书签管理器,自动搜索manager(但并不输入回车) |
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
'ORIGNAL: https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/core.puml | |
@startuml core | |
!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/colors.puml | |
' uncomment the following line and comment the first to use locally | |
'!include colors.puml | |
!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/skinparam.puml | |
' uncomment the following line and comment the first to use locally | |
'!include skinparam.puml |
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
/** | |
* 使用方法: | |
* 1. 用 Chrome 打开歌单的 web 页面(可以通过分享拿到链接,链接类似这样:http://music.163.com/playlist?id=xxx&userid=yyy) | |
* 2. 然后右键“检查”(如果有左上角有 device 选项,需要选择 Laptop 开头的,可以在 Edit/编辑 里添加,添加的时候注意 “User Agent string” 里选择 Desktop) | |
* 3. 在 console 里输入下面脚本,即可输出 “歌曲名 - 歌手名” 格式的内容: | |
Springsteen - Eric Church | |
Chattahoochee - Alan Jackson | |
Baby Now That I Found You - Alison Krauss | |
Check Yes or No - George Strait |
NewerOlder