Skip to content

Instantly share code, notes, and snippets.

View Ajido's full-sized avatar
🏠
Working from home

Daiki Kuriyama Ajido

🏠
Working from home
  • Tokyo, Japan
View GitHub Profile
@Refsa
Refsa / GrabScreenFeature.cs
Last active May 21, 2024 09:01
Unity URP custom grab pass
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public class GrabScreenFeature : ScriptableRendererFeature
{
[System.Serializable]
public class Settings
@koh110
koh110 / exec.md
Created November 21, 2019 10:50
promiseラップするとどれくらい遅くなるか
$ node -v
v12.12.0

$ node promise.js
pure: 4.863ms
promise: 47.649ms
@yowasou
yowasou / CreateAnimationClip.cs
Created September 4, 2019 05:53
Unityでアニメーションをスクリプトから作成
public static AnimationClip CreateAnimationClip(VMDFormat format, int interpolationQuality)
{
VMDVRoidConverter converter = new VMDVRoidConverter();
//アニメーションクリップを作成
AnimationClip clip = new AnimationClip();
clip.name = "output_test";
//キーフレーム作成
AnimationCurve retCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1));
//カーブ作成
@YoshiyukiKato
YoshiyukiKato / browser.env.ts
Created June 7, 2017 10:02
setup browser test environment for mocha
import {jsdom} from "jsdom";
import * as jquery from "jquery";
declare global{
interface Window{
XMLHttpRequest:XMLHttpRequest;
}
namespace NodeJS{
interface Global {
@karlding
karlding / disable-narrator.reg
Created January 14, 2016 19:05
Disable Narrator
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Narrator.exe]
"Debugger"="%1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\AtBroker.exe]
"Debugger"="%1"
@azu
azu / Incremental DOM.md
Last active July 13, 2022 16:07
Incremental DOM ざっと見たやつ。追記: 初期バージョンのコードなので最新では異なる場合があります。

Incremental DOM

Introducing Incremental DOM — Google Developers — Medium

Reactやvirtual-dom、Glimmer(Ember)などVirtual DOMの実装は色々あるが、これらのVirtual DOM実装には2つの問題がある

  • 既存のテンプレート言語を利用していない(しにくい)
  • モバイルでのパフォーマンス、特にメモリに関しては大きすぎる

これらを解決するためにIncremental DOMと言うものを作っている(WIP)

@sile
sile / 0_raft.md
Last active May 27, 2024 07:53
Raft(分散合意アルゴリズム)について
@Type-kun
Type-kun / changelog.txt
Last active August 29, 2015 14:20
Danbooru changelog
2.77.0
#### New Features
* Aliased tags are included in autocomplete (currently broken due to daily maintenance task failure)
* Note history shows note position and size
#### Fixes
* Deviantart duplicate false positives bug
@Vestride
Vestride / encoding-video.md
Last active June 5, 2024 14:38
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus