Skip to content

Instantly share code, notes, and snippets.

View kidapu's full-sized avatar
:octocat:
On vacation

kidapu kidapu

:octocat:
On vacation
  • 21:30 (UTC +09:00)
View GitHub Profile
@laiso
laiso / settings.local.json
Last active February 6, 2026 02:23
.claude/settings.local.json: To automatically open plan files in VS Code whenever they are created or updated by the Write tool. Claude Code
{
"hooks": {
"PreToolUse": [
{
"matcher": "ExitPlanMode",
"hooks": [
{
"type": "command",
"command": "code \"$(ls -t ~/.claude/plans/*.md | head -1)\"",
"timeout": 5
@laiso
laiso / index.ts
Last active May 10, 2025 11:55
tltr MCP Server on Cloudflare Workers
import { McpAgent } from "agents/mcp";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
import { GoogleGenerativeAI } from "@google/generative-ai";
import { Readability } from '@mozilla/readability';
import { parseHTML } from 'linkedom';
type Env = {
MyMCP: DurableObjectNamespace<MyMCP>;
GEMINI_API_KEY: string;
@baobao
baobao / DownSamplingRenderFeature.cs
Created December 25, 2024 10:58
RenderGraph版URP拡張サンプルコード
using UnityEngine.Rendering.Universal;
public class DownSamplingRenderFeature : ScriptableRendererFeature
{
DownSamplingRenderPass _renderPass;
public override void Create()
{
// パスの作成
_renderPass = new DownSamplingRenderPass
@taroushirani
taroushirani / nnsvs_oniku_kurumi_utagoe_db_test.ipynb
Last active March 21, 2021 02:50
nnsvs_test_oniku_kurumi_utagoe_db_test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@abtris
abtris / final_removal.sh
Created February 8, 2020 17:29
Remove MorphVOX Audio from MacOS
# remove driver if you after uninstall see MorphVOX Audio in Sound Settings
sudo rm -rf /Library/Audio/Plug-Ins/HAL/SBVirtualMic.driver
# restart audio deamon
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
@fyr91
fyr91 / face_detection.py
Created October 30, 2019 03:26
real time face detection with an ultra_light_model
# -*- coding: utf-8 -*-
# @Author: fyr91
# @Date: 2019-10-22 15:05:15
# @Last Modified by: fyr91
# @Last Modified time: 2019-10-30 11:25:26
import cv2
import numpy as np
import onnx
import onnxruntime as ort
from onnx_tf.backend import prepare

Installing dlib and face_recognition

(assuming that conda and/or miniconda are already installed)

  1. Create a conda environment with a few packages initialized.

    conda create -n faces python=3.6 cudatoolkit cudnn cmake numpy ipython

  2. Activate the environment.

@ksasao
ksasao / detect_marker.py
Last active December 10, 2023 02:38
ZOZOSUITのマーカーのIDを読み取るコードです。公開されている画像を元に独自に解析しているので、公式ではこのように処理しているかどうかは不明です。仕様等については https://twitter.com/ksasao/status/990779583682170881 のスレッドも参照してください。全身を読み取るコード https://twitter.com/ksasao/status/989842844243279872 ライセンスは Apache License 2.0 です。
import numpy as np
import random
import math
import cv2
from PIL import Image
import sys
def detect_markers(im):
markers = []
# 輪郭線抽出のための二値化
@ksasao
ksasao / findmarker.py
Last active February 20, 2022 09:12
某スーツの水玉をみつけるやつ
import numpy as np
import random
import math
import cv2
from PIL import Image
def recognize(im):
# 輪郭線抽出のための二値化
im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
im_blur = cv2.GaussianBlur(im_gray, (3, 3), 0)
@tosaka2
tosaka2 / dnn_tts_survey.md
Last active December 23, 2020 17:45
DNNを用いたTTS手法の調査

TTSについて

以下の図がよくまとまっている。[1]
TTSの図

モデルによって音声合成の中でどこまでの仕事を担当しているかが異なる。  


DNNを用いないボコーダー