Skip to content

Instantly share code, notes, and snippets.

@wararyo
wararyo / ..VRChat Discord Mute Syncer.md
Last active April 18, 2024 09:36
VRChat Discord Mute Syncer

VRChat Discord Mute Syncer

How to run

  1. Get client ID and client secret in Discord Developer Portal and edit .env
  2. Launch VRChat and Discord (not in browser but standalone application)
  3. Enable OSC in VRChat
  4. Run the followings
@wararyo
wararyo / Wiring
Last active November 20, 2021 04:39
赤外線リモコンコンセント 07-8251 OCR-05W をMoonrakerで使用する
14 GND -> IR_LED Cathode
16 GPIO23 -> IR_LED Anode
18 GPIO24 -> GPIO25
20 GND
22 GPIO25 -> GPIO24
<?php
/*
Plugin Name: MW WP Form Forbidden Word
Plugin URI:
Description: MW WP Formのバリデーションに「禁止ワード」を追加
Version: 1.0.0
Author: wararyo
Author URI: https://github.com/wararyo
License: GPLv2
*/
@wararyo
wararyo / Rotary_Encoder.c
Last active July 21, 2024 20:08
HID Mouse
#define cbi(addr,bit) addr &= ~(1<<bit)
#define sbi(addr,bit) addr |= (1<<bit)
#define tbi(addr,bit) addr ^= (1<<bit)
// PB3: Rotary Encoder A
// PB4: Rotary Encoder B
// Method A: Watch A change and read B
ISR(PCINT0_vect)//A変化
@wararyo
wararyo / template.css
Created February 11, 2019 14:26
Amazon link Builder Template
div.az-item{
transition:all 0.15s ease;
padding-bottom: 1px;
position: relative;
border-radius: 4px;
box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
div.az-item:hover {
transform:translateY(-1px);
box-shadow: 0 2px 8px rgba(0,0,0,.2);
@wararyo
wararyo / midiToSunaba.js
Created February 9, 2019 19:26
MIDIファイルをCHUNITHM.sunaba.txtで使える音楽データに変換します。
var resolution = 192 // MIDIファイルの分解能 四分音符の長さ
var sunaba_spanY = 1152 // Sunabaでの一小節の長さ
var midiFileParser = require('midi-file-parser');
var file = require('fs').readFileSync('Music2.mid', 'binary')
var midi = midiFileParser(file);
var Generate = function(noteList){
@wararyo
wararyo / _header.scss
Last active January 10, 2019 05:55
Twitter in Eclair HP
.header-banner {
display: block;
margin-bottom: 16px;
box-shadow: 0 2px 4px rgba($black, .2);
> img {
width: 240px;
height: 80px;
box-shadow: 0 2px 4px rgba(0,0,0,.2);
border-radius: 2px;
@wararyo
wararyo / CHUNITHM.sunaba.txt
Created May 25, 2018 07:05
3D Rhythm Game for Sunaba
/*
#####################################
# CHUNITHMっぽそうでCHUNITHMっぽくない、#
# すこしCHUNITHMっぽい音ゲー ###########
#####################################
# コードの概要 (行頭の数字はコード中のだいたいの位置)
60 Settings ゲームプレイに直接関わる変数群
Camera カメラ設定
@wararyo
wararyo / Sunaba.sublime-syntax
Last active May 18, 2018 04:01
Sublime Syntax for Sunaba
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: Sunaba
file_extensions:
- sunaba
- snb
- sunaba.txt
- snb.txt
scope: source.sunaba
@wararyo
wararyo / olympic.cpp
Last active October 17, 2015 11:50
オリンピックの図形を描く
#define GLFW_INCLUDE_GLU
#define _USE_MATH_DEFINES //M_PIを使うためのおまじない
#include <gl/glfw3.h> //某大の教授が開発したっぽいChinouGLとやらの代わりにGLFWを使う(ChinouGLはググっても情報が出てこなかった)
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <string>
#define LENGTH_OF(TS) (sizeof(TS) / sizeof(TS[0]))//配列のサイズを求める