Skip to content

Instantly share code, notes, and snippets.

View yutokun's full-sized avatar
🎵
I want to make singing videos...

Yuto Fushimi yutokun

🎵
I want to make singing videos...
View GitHub Profile
@yutokun
yutokun / Restart Logicool Options.bat
Created April 11, 2021 13:40
Bluetooth 切断後に、Logicool Options で設定したクリックが二重に発行される場合がある。これを解決するために関連アプリケーションを再起動するやつ。
taskkill /F /IM LogiOverlay.exe
taskkill /F /IM LogiOptionsMgr.exe
timeout /t 5 /nobreak > nul
rem ここは各々
"C:\Program Files\Logicool\LogiOptions\LogiOptions.exe"
@yutokun
yutokun / UAC.cs
Created November 3, 2020 16:51
WPF の MenuItem.Icon にそのまま渡せる UAC の盾アイコンを取得できるやつ
using System;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
namespace YourNamespace
{
public class UAC
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
// Network
const char *ssid = "Your SSID Here";
const char *pswd = "Your Password Here";
const char *commandIOPath = "http://withoutssl.yutokun.com/ac-switcher/command-io-test.php";
void setup()
{
@yutokun
yutokun / 0-README.md
Created June 29, 2019 05:49 — forked from mattintosh4/0-README.md
Automator 用シェルクリプト集 その1

Shell script for Automator Part.1

Automator のシェルスクリプトアクションで使えるサンプル集です。「アプリケーション」や「サービス」を作成するときにどうぞ。


入力の種類について

@yutokun
yutokun / CSV Parser for C#.md
Last active September 15, 2019 13:42
Simple CSV Parser for C# without any dependency. (CC0)
@yutokun
yutokun / SmoothFollow.cs
Last active October 24, 2018 16:59
VR で遅延追従させたかったときに作ったやつ。いつも別のアプローチで作り直して無駄時間を食っているので、シンプルっぽいのを置いておく。
using UnityEngine;
public class SmoothFollow : MonoBehaviour
{
[SerializeField] Transform followTarget;
[SerializeField, Range(0f, 1f)] float followFactor = 0.05f;
[SerializeField, Header("Position")] bool followPosition = true;
[SerializeField] Vector3 positionOffset = Vector3.forward;
Vector3 prevPosition;