Skip to content

Instantly share code, notes, and snippets.

View kotobuki's full-sized avatar

Shigeru Kobayashi kotobuki

  • Institute of Advanced Media Arts and Sciences [IAMAS]
  • X @kotobuki
View GitHub Profile
@kotobuki
kotobuki / info.txt
Created November 18, 2024 02:32
Event Information
NO.89
denha’s channel でんはちゃんねる
「音・光・動き」のガジェッツ、大集合!
https://www.iamas.ac.jp/ommf2024/maker/denhas-channel/
#OMMF2024
@kotobuki
kotobuki / info.txt
Created November 18, 2024 02:32
Event Information
NO.78
BotaLab
光る日本刀とゆかいなロボットたち
https://www.iamas.ac.jp/ommf2024/maker/botalab/
#OMMF2024
@kotobuki
kotobuki / info.txt
Created November 18, 2024 02:32
Event Information
NO.35
エレクトロニコス・ファンタスティコス!(名古屋 Orchest-Lab)
エレクトロニコス・ファンタスティコス!
https://www.iamas.ac.jp/ommf2024/maker/electronicos-fantasticos-nagoya/
#OMMF2024
@kotobuki
kotobuki / README.md
Created September 4, 2023 06:49
citeproc-js test

How I tested

  1. Clone the repository and install required files

    git clone --recursive https://github.com/frianasoa/citeproc-js.git
    git clone https://github.com/kotobuki/citeproc-js-based-replacer.git
    cd citeproc-js-based-replacer
    npm install
    cp ../citeproc-js/citeproc_commonjs.js ./node_modules/citeproc

This code works fine with the UIFlow_Lite firmware versions between v1.7.5 and v1.9.6. However, the HTTP request fails with versions after v1.9.7, including v.12.2. If I change the URL to http://api.m5stack.com/v1, it also works fine with those versions. It seems that firmware versions after v1.9.7 only accept the URL for GET HTTP requests.

  • Atom Lite
  • UIFlow v.12.2
@kotobuki
kotobuki / zoom.json
Created May 14, 2020 07:08
A Rule for Karabiner-Elements Complex to Control Mute/Unmute in Zoom with Eject Key
{
"title": "Zoom",
"rules": [
{
"description": "Map eject to command + shift + a",
"manipulators": [
{
"type": "basic",
"from": {
"consumer_key_code": "eject"
@kotobuki
kotobuki / toio.ino
Created May 5, 2020 04:14
Example of controlling a toio Core Cube from a M5STickC
#include <M5StickC.h>
#include <BLEDevice.h>
// Define the position and orientation of the two points where your Core Cube will move
const unsigned int left = 98;
const unsigned int top = 142;
const unsigned int right = 402;
const unsigned int bottom = 358;
const unsigned int blockWH = 43;
const unsigned int startX = right - blockWH;
import audio
import gc
import image
import lcd
import sensor
import sys
import time
import uos
import os
import KPU as kpu
@kotobuki
kotobuki / boot.py
Last active August 19, 2019 04:17
# Original: https://iotdiary.blogspot.com/2019/07/maixpy-go-mobilenet-transfer-learning.html
# Slightly modified for M5StickV
import sensor
import image
import lcd
import KPU as kpu
lcd.init()
lcd.rotation(2)
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
@kotobuki
kotobuki / index.html
Created October 16, 2018 02:08
Transfer Learning
<body>
<fieldset>
<legend>1. Train</legend>
<p>Specify a label for images, press the button to upload images for training. Once finished adding images for all labels, press the Train button to start training.</p>
<div>
<label for="labelForImages">Label for the images:</label>
<input type="text" id="labelFormages" name="labelForImages" />
</div>
<div>
<label for="imagesToTrain">Images to train:</label>