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 / 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>
@kotobuki
kotobuki / index.html
Last active October 15, 2018 03:43
Load Custom Model File
<body>
<fieldset>
<legend>1. Load</legend>
<p>Load files of your custom model from your local.</p>
<div>
<label for="modelFiles">Model files:</label>
<input type="file" id="modelFiles" name="modelFiles" multiple />
</div>
</fieldset>
<fieldset>
@kotobuki
kotobuki / index.html
Last active October 16, 2018 02:08
Transfer Learning with Data Augmentation by p5.js
<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>
@kotobuki
kotobuki / first-p5-js-sketch.markdown
Last active October 7, 2018 03:38
First p5.js Sketch