Skip to content

Instantly share code, notes, and snippets.

View tdtsh's full-sized avatar

T.Hanazaki tdtsh

View GitHub Profile
@iso2022jp
iso2022jp / body-pix-injector.js
Last active July 20, 2021 03:43
BodyPix を getUserMedia に注入してみる
'use strict'
;(async () => {
const handleSelectImage = (input, select) => {
input.addEventListener('change', e => {
const files = [...input.files]
const image = files.filter(f => f.type.startsWith('image/'))
if (image.length) {
const file = image[0]
@shunirr
shunirr / criminal_jc.md
Last active February 26, 2024 05:51
女子中学生チケット詐欺事件

criminal_jc

@qmihara
qmihara / 1.md
Last active July 9, 2018 09:48
MacBook 12-inch 2017 を購入したので Xcode のビルド時間を測ってみた

使用した PC

MacBook 12-inch 2017 MacBook Air 11-inch Early 2014 MacBook Pro 13-inch Early 2015 MacBook Pro 13-inch 2017
CPU 1.4 GHz Intel Core i7 1.7 GHz Intel Core i7 2.7 GHz Intel Core i5 3.5GHz Intel Core i7
メモリ 16 GB 1867 MHz LPDDR3 8 GB 1600 MHz DDR3 16 GB 1867 MHz DDR3 16 GB 2133 MHz LPDDR3

対象プロジェクト

お仕事のプロジェクト

@voluntas
voluntas / webrtc_for_work.rst
Last active July 12, 2024 08:21
仕事で WebRTC

仕事で WebRTC

日時:2023-01-15
作:@voluntas
バージョン:2023.1
url:https://voluntas.github.io/

この資料は以下の製品の宣伝を含みます。

@voluntas
voluntas / firefox_simulcast.md
Last active April 6, 2024 12:00
Firefox の Simulcast 実装について

Firefox の Simulcast 実装について

こちらの資料は古いので WebRTC Simulcast コトハジメ をどうぞ。

Simulcast とは

WebRTC の Simulcast という仕組みは、複数の品質で映像を配信する仕組みのことです。

P2P で必要かどうかというと、必要ではありません。Simulcast はクライアント・サーバモデル、さらに SFU モデルでの利用を前提としています。

@gtk2k
gtk2k / test.js
Created January 20, 2016 14:19
getUserMediaのconstraintsに設定する拡張キー(goog~)
const (
MinAspectRatioConstraint = MediaConstraintKey("minAspectRatio")
MaxAspectRatioConstraint = MediaConstraintKey("maxAspectRatio")
MaxWidthConstraint = MediaConstraintKey("maxWidth")
MinWidthConstraint = MediaConstraintKey("minWidth")
MaxHeightConstraint = MediaConstraintKey("maxHeight")
MinHeightConstraint = MediaConstraintKey("minHeight")
MaxFrameRateConstraint = MediaConstraintKey("maxFrameRate")
MinFrameRateConstraint = MediaConstraintKey("minFrameRate")
@voluntas
voluntas / webrtc_sfu_dev.rst
Last active July 10, 2024 02:15
WebRTC SFU コトハジメ

WebRTC SFU コトハジメ

日時:2023-12-03
作:voluntas
バージョン:2023.1
url:https://voluntas.github.io

この記事が良いと思ったらこの記事に Star をお願いします

@alexpchin
alexpchin / socket-cheatsheet.js
Created December 15, 2015 16:58
A quick cheatsheet for socket.io
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender
@voluntas
voluntas / webrtc.rst
Last active June 27, 2024 02:25
WebRTC コトハジメ
@manumaticx
manumaticx / README.md
Last active July 11, 2020 14:07
Fading ActionBar in Titanium

Fading Actionbar

This is a quick example of how to create a fading actionbar effect like this in Appcelerator Titanium

fadingactionbar

How this works

This is actually very simple. The trick is putting the Actionbar in overlay mode by configuring the theme with windowActionBarOverlay:true. Then all you need to do is updating the color of the Actionbar, in this case by scrolling a ScrollView.