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
dodo5522 / mts_converter.sh
Last active Sep 30, 2018
SONYハンディカムHDR-PJ760等で撮影したAVCHD動画を自動的にチャプタ毎分割しつつ、適当にダウンコンバートしたmp4動画へ変換するbashスクリプト。tsMuxeR, ffmpeg必須。詳細は http://tech.uribou.tokyo/split-avchd-movie-automatically とか参照。
View mts_converter.sh
#!/bin/bash
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
dodo5522 / main.py
Last active Aug 5, 2017
This module is very simple motor driver to be run on Raspberry Pi
View main.py
#!/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]
CONTROLLERS = []
@dodo5522
dodo5522 / flickr_upload.uml
Created Jul 15, 2017
UML diagram to upload a photo into flickr.
View flickr_upload.uml
' activity diagram
@startuml{plantuml_act_flickr_api.png}
start
:ブラウザを開く;
partition ブラウザ操作 {
:https://www.flickr.com/services/apps/create/apply\nにアクセスする;
if (営利目的か?) then (yes)
@dodo5522
dodo5522 / flickr_uploader.py
Last active Dec 31, 2018
Python script to upload a photo into flickr.
View flickr_uploader.py
#!/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
dodo5522 / fetch_with_sqlalchemy.py
Last active Mar 13, 2017
SQLAlchemy + PyMySQLでのデータ取得方法
View fetch_with_sqlalchemy.py
#!/usr/bin/env python
import sys
import sqlalchemy as sa
if __name__ == "__main__":
engine = sa.create_engine(
"mysql+pymysql://{USER}:{PASS}@{HOST}/{DB}?charset=utf8".format(
USER=sys.argv[1], PASS=sys.argv[2], HOST=sys.argv[3], DB=sys.argv[4]))
@dodo5522
dodo5522 / mnist_dl.py
Last active Feb 16, 2017
MNISTデータをダウンロードしてgzip伸長するpythonコード
View mnist_dl.py
import asyncio
import aiohttp
import gzip
from io import BytesIO
import numpy as np
import pandas as pd
import requests
class MnistWrapper(object):
@dodo5522
dodo5522 / file0.txt
Created Jul 17, 2014
CloudFlashの便利な使い方/設定方法 ref: http://qiita.com/dodo5522/items/dc05cbc814e86c8985bb
View file0.txt
telnet 192.168.1.1
#
You can’t perform that action at this time.