Skip to content

Instantly share code, notes, and snippets.

View BambooTuna's full-sized avatar

Takeo Suzuki BambooTuna

View GitHub Profile
docker run --gpus "all" --rm -v ${PWD}/data:/host_dir wawa9000/sadtalker \
--driven_audio /host_dir/some.wav \
--source_image /host_dir/some.jpg \
--still true \
--preprocess full \
--enhancer gfpgan \
--result_dir /host_dir
@BambooTuna
BambooTuna / 1.md
Last active January 15, 2021 12:37

インターフェースとは・メリットはあるのか

インターフェースとは

物事の流れや処理の規格だけを決めたもの

設計図

ex. 車の駆動系

  • アクセルでスピードがどれだけ変化するか
  • ブレーキでスピードがどれだけ変化するか
@BambooTuna
BambooTuna / ZipOptionalWith2.scala
Last active May 20, 2020 23:02
Akka Stream - ZipOptional
import akka.stream.{Attributes, FanInShape2, Inlet, Outlet}
import akka.stream.stage.{GraphStage, GraphStageLogic, InHandler, OutHandler}
class ZipOptionalWith2[A1, A2, O] (val zipper: (Option[A1], Option[A2]) => O) extends GraphStage[FanInShape2[A1, A2, O]] {
override def initialAttributes = Attributes.name("ZipOptionalWith2")
override val shape: FanInShape2[A1, A2, O] = new FanInShape2[A1, A2, O]("ZipOptionalWith2")
def out: Outlet[O] = shape.out
val in0: Inlet[A1] = shape.in0
val in1: Inlet[A2] = shape.in1
@BambooTuna
BambooTuna / Othello.kt
Created February 23, 2020 17:17
KotlinでのAndroid開発練習-オセロ
package com.example.testappp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.graphics.Color
import android.graphics.Point
import android.graphics.drawable.ColorDrawable
import android.view.View
import android.widget.Button
import android.widget.LinearLayout
@BambooTuna
BambooTuna / Dockerfile
Created November 22, 2019 14:17
【Python】dockerでサクッと画像処理環境を整える
FROM python:3.7.3-slim-stretch
ENV PYTHONPATH "/opt/python/library"
COPY ./requirements.txt /tmp/requirements.txt
RUN apt-get update && \
apt-get install -y libopencv-dev
RUN set -x && \
pip install -U pip && \
pip install -r /tmp/requirements.txt && \
mkdir -p /opt/python/library && \
mkdir -p /opt/python/jupyter && \
@BambooTuna
BambooTuna / BitflyerInterpreter.scala
Last active November 6, 2019 08:43
Cats使ってみたやつ
object BitflyerInterpreter {
type Bitflyer[A] = Reader[APIAuth, A, Task]
implicit val BitflyerSYMInterpreter = new BitflyerSYM[Bitflyer] {
def order(orderData: OrderData) =
for {
_ <- ask[APIAuth, Task]
r <- pure(Task{
println("order requested" + orderData)
Thread.sleep(1000)
<template>
<!-- ▼LINE風ここから -->
<div class="line__container">
<InviteQRModal @close="qr_flag = false" v-if="qr_flag">
<vue-qrcode :value="qrImg" tag="img"></vue-qrcode>
</InviteQRModal>
<!-- タイトル -->
<div class="line__title">
<p>{{groupId}}</p>
</div>