Skip to content

Instantly share code, notes, and snippets.

@yuiAs
yuiAs / test.cpp
Last active December 27, 2016 07:58
WASAPI共有モードの覚え書き
#include <fstream>
#include <memory>
#include <string>
#include <tuple>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif
@yuiAs
yuiAs / gist:8e5c768b81dd0f4b55c835964c2234b6
Created June 6, 2018 03:16
Mintty color scheme (WSL向け)
# https://blogs.msdn.microsoft.com/commandline/2017/08/02/updating-the-windows-console-colors/
# Redが死ぬほど見づらい,Blueもちょっと微妙なので変更
ForegroundColour = 208, 208, 208
BackgroundColour = 28, 28, 28
CursorColour = 255, 175, 0
IMECursorColour = 128, 224, 160
Black = 12, 12, 12
BoldBlack = 118, 118, 118
Red = 249, 38, 114 #197, 15, 31
BoldRed = 255, 89, 149 #231, 72, 86
@yuiAs
yuiAs / VKatsuCrypto.cs
Created November 14, 2018 06:23
Vカツのセーブデータを相互にごにょごにょ。Key/IVは自分で調べてね。
using System;
using System.IO;
using System.Security.Cryptography;
namespace vkatsu {
public class VKCrypto
{
public static RijndaelManaged Rijndael { get; private set; }
public int MaxBufferSize { get; set; } = 4*1024;
@yuiAs
yuiAs / gbf_stop_mute.js
Created March 20, 2020 05:14
グラブルでフォーカス死ぬとMuteされるのを阻止
window.addEventListener('load', function() {
const names = [ 'blur' ];//[ 'blur', 'pagehide', 'unload', 'beforeunload' ];
for (const v of names) {
window.addEventListener(v, function(event) { // ignored this warning
if (window.Game.setting.sound_flag != 0) {
event.stopImmediatePropagation();
}
}, true)
}
})
const modifier = async () => {
const sleep = msec => new Promise(resolve => {
if (document.readyState === 'complete') {
setTimeout(resolve, msec);
} else {
document.addEventListener('readystatechange', () => {
if (document.readyState === 'complete') {
setTimeout(resolve, msec);
}
}, { capture: false, passive: true });
@yuiAs
yuiAs / settings.json
Created January 17, 2026 02:23
Visual Studio Developer PowerShell on VSCode
"Developer PowerShell for VS 2022": {
"source": "PowerShell",
"args": [
"-NoExit",
"-NoLogo",
"-Command",
"&{$vsInstance = Get-VSSetupInstance | Select-VSSetupInstance -Version '[17.0,18.0)';Import-Module (Join-Path $vsInstance.InstallationPath 'Common7/Tools/Microsoft.VisualStudio.DevShell.dll');Enter-VsDevShell $vsInstance.InstanceId -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64'}"
],
},
"Developer PowerShell for VS18": {