Skip to content

Instantly share code, notes, and snippets.

View progre's full-sized avatar

progre progre

View GitHub Profile
@progre
progre / speech_recognization.rs
Last active March 28, 2023 01:22
音声認識を SpeechRecognizer::ContinuousRecognitionSession でやろうとしたけど、アクティブなウィンドウに紐づいちゃってうまくいかなかったやつ
use anyhow::{anyhow, Result};
use tokio::{spawn, sync::mpsc};
use tokio_stream::{wrappers::ReceiverStream, Stream};
use windows::{
Foundation::{TimeSpan, TypedEventHandler},
Media::SpeechRecognition::{
SpeechContinuousRecognitionCompletedEventArgs,
SpeechContinuousRecognitionResultGeneratedEventArgs, SpeechContinuousRecognitionSession,
SpeechRecognizer,
},
https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/twitter/322/eye_1f441-fe0f.png
https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/twitter/322/thumbs-up_1f44d.png
https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/twitter/322/red-heart_2764-fe0f.png
@progre
progre / karabiner.json
Created September 13, 2022 01:46
左 option+space を英数、右 option+space をかなにする karabiner element の設定
{
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 50,
"basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000,
"basic.to_if_held_down_threshold_milliseconds": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
@progre
progre / th105.asl
Last active October 14, 2020 14:57
state("th105", "")
{
// int decideKey : 0x056E70, 0x64, 0x40; // unused
// int skipKey : 0x056E70, 0x64, 0x48; // unused
byte resultWindowState : 0x2e6254, 0x3f9;
byte stage : 0x2e6254, 0x594;
byte maxStage : 0x2e6254, 0x595;
int transition : 0x2e62e8; // 0x006e62e8 - 0x400000
int screen : 0x2ece78;
// int zeroBeginningStage : 0x2e64b0; // unused
2020-03-04T00:08:10.562375+09:00 DEBUG peercastoxide::features::pcp::accesses::tcp_server - Accepting...: 0.0.0.0:7143
2020-03-04T00:09:29.516587+09:00 DEBUG peercastoxide::features::pcp::accesses::tcp_server - Accept: 127.0.0.1:57623
2020-03-04T00:09:29.516949+09:00 DEBUG peercastoxide::features::pcp::accesses::tcp_server - Accepting...: 0.0.0.0:7143
2020-03-04T00:09:29.523799+09:00 TRACE peercastoxide::features::pcp::gateways::http_header - {"x-peercast-pcp": "1", "x-peercast-pos": "0"}
2020-03-04T00:09:29.525243+09:00 INFO peercastoxide::core::use_cases::channel_finder - 127.0.0.1:57623 "GET channel_id(9776C856BB848360A7734740D756B91E)" 404
2020-03-04T00:09:29.525494+09:00 INFO peercastoxide::features::pcp::accesses::tcp_server - Socket close: 127.0.0.1:57623
2020-03-04T00:09:33.626192+09:00 DEBUG peercastoxide::features::pcp::accesses::tcp_server - Accept: 127.0.0.1:57645
2020-03-04T00:09:33.626309+09:00 DEBUG peercastoxide::features::pcp::accesses::tcp_server - Accepting...: 0.0.0.0:7143
2020-03-04T00:0
2020-02-20T23:23:07.355204+09:00 WARN peercastoxide::core::broadcast_factory - Unknown id(vrvp) in bcst
2020-02-20T23:23:07.355246+09:00 WARN peercastoxide::core::broadcast_factory - Unknown id(vexp) in bcst
2020-02-20T23:23:07.355290+09:00 WARN peercastoxide::core::broadcast_factory - Unknown id(vexn) in bcst
2020-02-20T23:23:07.355346+09:00 WARN peercastoxide::core::broadcast_factory - Unknown id(gnre) in trck
2020-02-20T23:23:07.355404+09:00 WARN peercastoxide::core::broadcast_factory - Unknown id(vevp) in host
2020-02-20T23:23:07.355444+09:00 WARN peercastoxide::core::broadcast_factory - Unknown id(vexp) in host
2020-02-20T23:23:07.355477+09:00 WARN peercastoxide::core::broadcast_factory - Unknown id(vexn) in host
2020-02-20T23:23:07.355525+09:00 TRACE peercastoxide::core::app - bcst: Broadcast { ttl: 1, hops: 0, host: Host { session_id: 0AD3F2BFEEF143628821F684CB1B92BA, primary_ip: V4(192.168.43.158), primary_port: 7150, secondary_ip: V6(::), secondary_port: 0, listeners: 0, relays: 0, uptime: 34023, ver
const twitch = document.querySelector('div[data-platform="1"] input[placeholder="Enter the game"]');
const mixer = document.querySelector('div[data-platform="19"] input[placeholder="Enter the game"]');
twitch.addEventListener("change", () => {
mixer.value = twitch.value;
});
@progre
progre / gist:a11c213b2b6d46e9839c4fc056471cc7
Created March 10, 2018 15:45
2018/3/11 配信で書きなぐった未来のピアキャスト像についての妄想
未来のピアキャスト像
いま
- P2Pネイティブクライアント (デスクトップ/Android)
- WME or OBS(rtmp)
- ネイティブプレイヤー
- したらば掲示板など
- 付随サービス類(スタンプキャストとか)
- (少数の犠牲の下)フリー
- YPのサーバー運営
PS C:\WINDOWS\system32> get-physicaldisk -friendlyname "WDC WD20 EZRZ-00Z5HB0 SCSI Disk Device" |fl
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\SPACES_PhysicalDisk.Obje
ctId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{a9b1a85c-c040-3304-e9ce-a70e8a95ba8
8}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
PS C:\WINDOWS\system32> date
2017年12月10日 0:13:57
PS C:\WINDOWS\system32> Get-PhysicalDisk
FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage Size
------------ ------------ --------- ------- ----------------- ------------ ----- ----
TOSHIBA DT01ACA200 17FH77WAS HDD False OK Healthy Auto-Select 1.82 TB