Skip to content

Instantly share code, notes, and snippets.

Takashi Ando dodo5522

Block or report user

Report or block dodo5522

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dodo5522 /
Last active Sep 30, 2018
SONYハンディカムHDR-PJ760等で撮影したAVCHD動画を自動的にチャプタ毎分割しつつ、適当にダウンコンバートしたmp4動画へ変換するbashスクリプト。tsMuxeR, ffmpeg必須。詳細は とか参照。
usage_exit() {
echo "Usage: $0 [options] MPL_FILE" 1>&2
echo "" 1>&2
echo "options:" 1>&2
echo " -i input source file" 1>&2
echo " -d destination dir" 1>&2
echo " -r output video resolution (default: 1280x720)" 1>&2
echo " -s output video aspect (default: 16:9)" 1>&2
dodo5522 /
Last active Aug 5, 2017
This module is very simple motor driver to be run on Raspberry Pi
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import print_function
from motor import MotorDriver
from time import sleep
K = [10.0, 0.0]
dodo5522 / flickr_upload.uml
Created Jul 15, 2017
UML diagram to upload a photo into flickr.
View flickr_upload.uml
' activity diagram
partition ブラウザ操作 {
if (営利目的か?) then (yes)
dodo5522 /
Last active Dec 31, 2018
Python script to upload a photo into flickr.
#!/usr/bin/env python2
# -*- encoding:utf-8 -*-
from __future__ import print_function
import argparse
import datetime
import exifread
import flickrapi
import os
import sys
dodo5522 /
Last active Mar 13, 2017
SQLAlchemy + PyMySQLでのデータ取得方法
#!/usr/bin/env python
import sys
import sqlalchemy as sa
if __name__ == "__main__":
engine = sa.create_engine(
USER=sys.argv[1], PASS=sys.argv[2], HOST=sys.argv[3], DB=sys.argv[4]))
dodo5522 /
Last active Feb 16, 2017
import asyncio
import aiohttp
import gzip
from io import BytesIO
import numpy as np
import pandas as pd
import requests
class MnistWrapper(object):
dodo5522 / file0.txt
Created Jul 17, 2014
CloudFlashの便利な使い方/設定方法 ref:
View file0.txt
You can’t perform that action at this time.