Skip to content

Instantly share code, notes, and snippets.

@mzmttks
mzmttks / howto_use_separator.md
Created June 15, 2021 03:34
separater.py の使い方
@mzmttks
mzmttks / separator.py
Created June 15, 2021 03:19
Audio file separator
"""
Audio file separator
This script splits an audio file into a given length of video files.
1. Split an input file into a given length of .wav files
2. Combine the .wav file with a given video file using FFmpeg
You can use this script to prepare for audio psychological experiments.
(c) T.Mizumoto
"""
@mzmttks
mzmttks / jupyter.ipynb
Last active December 3, 2016 14:33
Embedding an audio tag to Jupyter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mzmttks
mzmttks / Multiarmed Bandit.ipynb
Created October 22, 2015 16:56
A sample implementation of Bernoulli Bandit Solver using Thompson Sampling
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mzmttks
mzmttks / file0.txt
Created November 12, 2014 09:06
Windows Movie Maker で作った xlmp ファイルから字幕だけを取り出す。 ref: http://qiita.com/mzmttks/items/993c111d6ddf3a3425bd
"""
Script Extractor from Windows Movie Maker XML file
This script takes wlmp (Windows Movie Maker file)
as an input, and extracts the text (TitleClip tag).
Author: mzmttks
License: MIT License
"""
import sys
@mzmttks
mzmttks / file0.py
Created September 24, 2014 16:14
pandas で日経平均株価指数を plot する ref: http://qiita.com/mzmttks/items/214ab3ffb6e3d1c05fcb
import pandas.io.data as web
import matplotlib.pyplot as plt
import datetime
# 取得する日の範囲を指定する
start = datetime.datetime(2014, 1, 1)
end = datetime.datetime(2014, 9, 1)
# Yahoo ファイナンスから、 ^N225 (日経平均株価指数) を
# とってくる。