Skip to content

Instantly share code, notes, and snippets.

// https://qiita.com/wdice02136/items/25b2ac3789918c398d43
//
// M5StickC Plus2でBLE MIDIのテスト
// ボタンを押すとC4のNote ON/OFFを送信するだけ
//
#include <M5Unified.h>
#include <BLEDevice.h>
#include <BLEServer.h>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
@yoggy
yoggy / main.py
Last active January 13, 2024 04:46
#
# clusterのサーバから外部通信を受けるREST API
#
# 参考: https://docs.cluster.mu/script/interfaces/ClusterScript.html#callExternal
#
from firebase_functions import https_fn, options
from firebase_admin import initialize_app
import os
import json
@yoggy
yoggy / DoorBell.js
Last active January 20, 2024 07:41
const particle = $.subNode("particle");
const se1 = $.audio("EC5227CW-chime");
const se2 = $.audio("beep");
// 初期設定
$.onStart(() => {
$.state.lastUpdatedTime = 0;
$.state.remainingTime = 0;
});
@yoggy
yoggy / serial_test_recv.py
Created April 29, 2023 11:06
pyserial samples
#!/usr/bin/python
import serial
import time
import datetime
s = serial.Serial("COM4", 9600)
while True:
line = s.readline().decode("utf-8")
@yoggy
yoggy / 000-default-le-ssl.conf
Last active February 22, 2023 09:02
Apache2 TLS termination proxy for MinIO
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# TLS termination proxy for MinIO
@yoggy
yoggy / saikoro-otoshidama.py
Last active January 3, 2023 12:33
サイコロお年玉の検証コード。こちら参照 https://twitter.com/oskdgkmgkkk/status/1609832118913503234
#!/usr/bin/python3
# see also... https://twitter.com/oskdgkmgkkk/status/1609832118913503234
import random
import statistics
import math
count = 100000
otoshidama_list = []
for i in range(count):

Voice Meeter Bananaを使ってビデオ会議のノイズ軽減をするメモ.md

自宅でビデオ会議をしていると、空調とか屋外のノイズなどをマイクが拾いがちなので、Voice Meeter Bananaを使ってノイズを軽減するための工夫をあれこれ試してみたメモ。

使うもの

XFSでパーティションを作成するメモ.md

パーティションの切り方

$ sudo parted /dev/sdb
...
(parted) p
...
Number  Start  End  Size  File system  Name  Flags
※元からパーティションがあった場合は、1番以降に何か表示される
@yoggy
yoggy / .vimrc
Created November 19, 2019 11:08
syntax enable
filetype plugin indent on
set hidden
set nobackup
set noundofile
set modeline