Skip to content

Instantly share code, notes, and snippets.

View YamadaTakahito's full-sized avatar
🎯
Focusing

Yamada Takahito YamadaTakahito

🎯
Focusing
View GitHub Profile
@xhiroga
xhiroga / kotlinfest2019.md
Last active January 3, 2020 04:19
Kotlin Fest 2019 登壇資料まとめ
@mjdietzx
mjdietzx / download_image.py
Last active February 16, 2025 04:33
Download image from url and save as file
import io
from PIL import Image # https://pillow.readthedocs.io/en/4.3.x/
import requests # http://docs.python-requests.org/en/master/
# example image url: https://m.media-amazon.com/images/S/aplus-media/vc/6a9569ab-cb8e-46d9-8aea-a7022e58c74a.jpg
def download_image(url, image_file_path):
r = requests.get(url, timeout=4.0)
if r.status_code != requests.codes.ok:
@voluntas
voluntas / webrtc.rst
Last active March 12, 2026 12:25
WebRTC コトハジメ
@Gab-km
Gab-km / github-flow.ja.md
Last active February 23, 2026 01:59 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@stokasto
stokasto / read_video.py
Created February 9, 2012 10:44
convert video to numpy array
from numpy import *
import cv
capture = cv.CaptureFromFile('video.mov')
frames = []
for i in range(100):
img = cv.QueryFrame(capture)
tmp = cv.CreateImage(cv.GetSize(img),8,3)
cv.CvtColor(img,tmp,cv.CV_BGR2RGB)
frames.append(asarray(cv.GetMat(tmp)))