Skip to content

Instantly share code, notes, and snippets.

View rfushimi's full-sized avatar

Ryohei Fushimi rfushimi

  • Tokyo
View GitHub Profile
@rfushimi
rfushimi / webvtt_to_audition_markers.py
Last active November 26, 2022 04:45
Convert WebVTT to Audition marker file
# Convert WebVTT to Audition marker file
import webvtt
output = '20221120-social_ミックスダウン.wav.csv'
input = '20221120-social_ミックスダウン.wav.vtt'
file = open(output,"w")
file.write("Name\tStart\tDuration\tTime Format\tType\tDescription\r\n")
for caption in webvtt.read(input):
duration = caption.end_in_seconds - caption.start_in_seconds
@rfushimi
rfushimi / gist:007a5cd45372f422297a67ac65c82d92
Created December 5, 2021 06:01
Download all mp3 files from podcast rss
#!/bin/bash
wget https://anchor.fm/s/2631f634/podcast/rss -O podcast.rss
xmllint podcast.rss --xpath "//item/enclosure/@url" | sed -e "s/ url=\"\([^\"]*\)\"/\1\n/g" > urls
xmllint podcast.rss --xpath "//item/title" | sed -e "s/<\/title>/<\/title>\n/g" | sed -e "s/.*CDATA\[\([^]]*\).*/\1/g" > titles
N_EPISODES=`cat urls | wc -l`
for INDEX in `seq $N_EPISODES`
//
// ViewController.m
// NIPhotoScrollView
//
// Created by Ryohei Fushimi on 2018/10/04.
// Copyright © 2018 Ryohei Fushimi. All rights reserved.
//
#import "ViewController.h"
#import "NIPhotoScrollView.h"