Skip to content

Instantly share code, notes, and snippets.

View srea's full-sized avatar
🐢
Hi!

Yuki Tamazawa srea

🐢
Hi!
View GitHub Profile
@srea
srea / README.md
Last active March 23, 2020 10:45
Replace ngrok subdomain of bitrise.yml

setup

$ brew install jq

example

Launch ngrok before exec command

@srea
srea / gist:eeebc2d6448a014d17080fff579126ae
Created July 30, 2019 15:46
zencoder m3u8 parameter
return {
input: bucketPath + "/original_movie", // TODO:定数化
credentials: config.transcoder.zencoder.credentials,
region: config.transcoder.zencoder.region,
outputs: [
{
base_url: bucketPath,
filename: "output.mp4",
size: "1280x720",
h264_profile: "high",
# Clean Architecture
UI -> Model -> Translator -> UseCase -> Repository -> DataStore -> Entity
let repository = RepositoryImpl
let useCase = UsecaseImpl(repository)
let presenter = PresenterImpl(useCase)
let viewController = ViewController(presenter)
# RIB
AndroidManifest.xml に定義を追加
```
<application
android:networkSecurityConfig="@xml/network_security_config"
```
network_security_config.xml
```
//
// Plugin.swift
// HomeSecurity
//
// Created by Valery.Kokanov on 20/12/2018.
// Copyright © 2018 Ooma Inc. All rights reserved.
//
import RIBs
import RxSwift
@srea
srea / introrx.md
Created April 24, 2018 02:31 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@srea
srea / puzzle_dragon.php
Created April 12, 2017 13:36
パズドラ風PHP
<?php
// 一列ごとにどこからどこに動かせが揃うかを調査
// 一番いいところを見つけたら次はそこからどこに
// 動かせば一番そろうか調査
// ループして一番いい条件を出す。
// 2012年4月6日
// ・マップ上で消せそうな物を探す。
// ・どれを探すか優先順位を決定する