Skip to content

Instantly share code, notes, and snippets.

View noughts's full-sized avatar

Koichi Yamamoto noughts

View GitHub Profile
@icoxfog417
icoxfog417 / principle.md
Last active November 4, 2025 01:42
Kiroの日本語デモ用STEERING File
inclusion
always

基本原則

このリポジトリは、日本のソフトウェア開発初心者向けにスペック駆動型の機能開発を紹介するためのものです。以下の原則に従って対応します:

1. コミュニケーション原則

@rizumita
rizumita / CodePiece.swift
Created February 9, 2020 12:47
Combineのasync/awaitをライブラリ化して自作フレームワークで使ってみた。かなり良い感じ。 https://github.com/rizumita/CombineAsync #CodePiece
static func update(event: Event, context: Context) -> Async<Model> {
async { yield in
switch event {
case .increase:
context.countRepository.increase()
case .increaseAutomatically:
yield(context.countRepository.increaseAutomatically(interval: 2.0, until: context.until)
.flatMap { self.makeModelAsync(context: context) })
@unnamedd
unnamedd / MacEditorTextView.swift
Last active January 2, 2026 10:23
[SwiftUI] MacEditorTextView - A simple and small NSTextView wrapped by SwiftUI.
/**
* MacEditorTextView
* Copyright (c) Thiago Holanda 2020-2025
* https://bsky.app/profile/tholanda.com
*
* (the twitter account is now deleted, please, do not try to reach me there)
* https://twitter.com/tholanda
*
* MIT license
@mkamakura
mkamakura / firebase.json
Created December 17, 2017 03:35
[Firebase Hosting,Functions] basic認証付きでサイトを公開する
{
"hosting": {
"public": "public",
"rewrites": [
{
"source": "**",
"function": "app"
}
],
"redirects": [{
@jashmenn
jashmenn / final-cut-it-out.js
Created September 21, 2017 11:44
Remove Silence from Final Cut Pro clips, automatically, using ffmpeg timecodes and OSX JavaScript Automation - Demo: https://imgur.com/a/Zisav
#!/usr/bin/env osascript -l JavaScript
/**
* Delete silence from Final Cut Pro timeline using a script.
* Demo: https://imgur.com/a/Zisav
*
* This script accepts an ffmpeg silencedetect log as input.
*
* To setup, have fcp running along with your clip selected. Ensure that the
* timecode will start at zero before running this script. That is, if your clip
@tsubaki
tsubaki / ResettableScriptableObject.cs
Last active June 20, 2017 06:57
ゲーム再生終了時にパラメータをリセットする(ゲーム開始時の値に戻す)ScriptableObject
using UnityEngine;
public class ResettableScriptableObject : ScriptableObject
{
#if UNITY_EDITOR
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
private static void CallBeforPlayScene()
{
// recently, unity editor will crash
// recommend SaveProject before playing
@naichilab
naichilab / EncryptedPlayerPrefs.cs
Last active July 19, 2018 06:34
Unity用、暗号化PlayerPrefs
using UnityEngine;
/// <summary>
/// 暗号化PlayerPrefs
/// </summary>
public static class EncryptedPlayerPrefs
{
public static void SaveInt(string key, int value)
{
@einfallstoll
einfallstoll / tutorial.markdown
Created May 3, 2016 06:13
How to detect a movie being played in a WKWebView?

How to detect a movie being played in a WKWebView?

I'd like to know wether it's possible to detect a movie being played in the WKWebView?

Additionally I'd like to know the exact URL of the opened stream?

Answer

Since the solution(s) to this question required a lot of research and different approaches, I'd like to document it here for others to follow my thoughts. If you're just interested in the final solution, look for some fancy headings.

@tsubaki
tsubaki / TransparentShadowCollector.shader
Last active June 9, 2019 05:24
透明な床に影を落とすシェーダー改
Shader "Custom/TransparentShadowCollector"
{
Properties
{
_ShadowIntensity ("Shadow Intensity", Range (0, 1)) = 0.6
}
SubShader
{
@auycro
auycro / PlistPostProcess.cs
Last active October 29, 2021 11:40
Unity update info.plist
//Copyright (c) 2015 Gumpanat Keardkeawfa
//Licensed under the MIT license
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
public static class XCodePostProcess