Skip to content

Instantly share code, notes, and snippets.

View teddokano's full-sized avatar

Tedd OKANO teddokano

View GitHub Profile
#!/usr/bin/env python
#encoding=utf-8
# Convert image to Pwmout grayscale data for dot-matrix LED
# Input image format can be JPEG, PNG etc
from PIL import Image
import sys
if __name__ == "__main__":
@teddokano
teddokano / usb-isp
Last active August 29, 2015 14:13
USB-ISP tool for Mac :
(*
* Simple USB-ISP flash writer for Mac
* June-2014, tedd
*
* this program is distributed under Apache-2.0 license
* http://opensource.org/licenses/Apache-2.0
*)
on open newFile
set targetPath to "/Volumes/CRP\\ DISABLD/" -- target volume
@teddokano
teddokano / mbed-on-yosemite
Created January 19, 2015 13:19
Yosemite file copier for HDK-based mbed
(*
* mbed executable copier for Yosemite
* 01-Nov-2014, tedd
*
* this program is distributed under Apache-2.0 license
* http://opensource.org/licenses/Apache-2.0
*)
on open newFile
set targetPath to "/Volumes/MBED/" -- target volume (last '/' added on 2015Jan15)
@teddokano
teddokano / anm_main.gp
Created January 19, 2015 13:35
sample of making 3D animated-GIF file
set size ratio 0.2
set samples 1000
set isosamples 8
set xrange [0:7]
set yrange [0:7]
set zrange [0:1]
set nokey
#set parametric
set grid
@teddokano
teddokano / noise_shaper.m
Created January 20, 2015 22:17
Noise shaper (1st and 2nd order) simulation as writing practice of GNU Octave
% 1st and 2nd order noise shaper time/frequency domain plot by GNU Octave
clear -all
%
% parameters
%
calc_length = 2**16; % number of samples
t_domain_start = 280;
#!/usr/bin/env python
#encoding=utf-8
# This script creates copy from mbed public user repository
# You must install Mercurial package (pip install mercurial)
#
# Usage: python clone_mbed_user_repo.py <mbed_user_name> <password> <sessionid_developer of coockei>
# e.g. $ python clone_mbed_user_repo.py MACRUM password kjdt3hu1loppvyyxq60nhokssa1k48ul
#
# <sessionid_developer> can be found from developer tool of the web brawser
#!/usr/bin/env python3
# run_analize.py
#
# script for running data analisis.
# plotting running data from .fit file
#
# usage: run_analyze.py data.fit
#
# Tedd OKANO, Tsukimidai Communications Syndicate 2021
@teddokano
teddokano / noiseshpaer.py
Last active July 6, 2021 13:49
1bit quantizer with 1st and 2nd order noiseshaper: time/frequency domain plot by python
#!/usr/bin/env python3
# 1st and 2nd order noise shaper time/frequency domain plot by python
#
# Tedd OKANO, Tsukimidai Communications Syndicate 2021
# Version 1.1 06-July-2021
#
# code converted from https://gist.github.com/teddokano/17c53e6da8c4b5cb8e70
# about "noiseshaper": https://bit.ly/3p3ehLP
#!/usr/bin/env python3
# .fit file read interface based on fitparse
#
# https://github.com/dtcooper/python-fitparse
# reference: http://johannesjacob.com/2019/03/13/analyze-your-cycling-data-python/
#
# Tedd OKANO, Tsukimidai Communications Syndicate 2021
# Version 0.4 25-February-2021
#!/usr/bin/env python3
# run_match.py
#
# script for finding same course ruuning from .fit files
#
# usage: run_analyze.py data*.fit ..
#
# Tedd OKANO, Tsukimidai Communications Syndicate 2021
# Version 0.7 20-March-2021