Skip to content

Instantly share code, notes, and snippets.

@isudzumi
isudzumi / Install-FFmpeg.ps1
Last active January 10, 2023 16:39
ffmpeg installer for Windows
$folder = "ffmpeg-master-latest-win64-gpl"
Invoke-WebRequest -Uri "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/$folder.zip" -OutFile $Env:TEMP/ffmpeg.zip
Expand-Archive -Path $Env:TEMP/ffmpeg.zip -DestinationPath $Env:TEMP
Copy-Item -Recurse -Force -Path $Env:TEMP/$folder/* -Destination $Env:LOCALAPPDATA/Programs/ffmpeg
Remove-Item $Env:TEMP/ffmpeg.zip
Remove-Item -Recurse $Env:TEMP/$folder

Keybase proof

I hereby claim:

  • I am isudzumi on github.
  • I am isudzumi (https://keybase.io/isudzumi) on keybase.
  • I have a public key ASA7Ziw1Lu3Ay3VZu10siwN7turBD2i67JGC8Uy1IrD2TQo

To claim this, I am signing this object:

@isudzumi
isudzumi / invsqrt.c
Last active February 11, 2021 06:30
Fast inverse square root algorithm ref. https://lipoyang.hatenablog.com/entry/2021/02/06/194619
#include <stdio.h>
float invsqrt(float x) {
// y = 1/sqrt(x) = 2 ^ (-1/2 * log2(x))
long X, Y;
float y;
X = *(long*)&x;
Y = 0x5F3759DF - (X >> 1);
y = *(float*)&Y;
MANPATH=/usr/local/share/man/man1
FILENAME=human.1
install:
cp human $(FILENAME)
gzip $(FILENAME)
mv $(FILENAME).gz $(MANPATH)/.
clean:
rm $(MANPATH)/$(FILENAME).gz
@isudzumi
isudzumi / greemas.py
Created March 18, 2018 12:18
ミリマスのイベントを周回させるやつ
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from time import sleep
driver = webdriver.Chrome(SELENIUM_CHROME_DRIVER_PATH)
def init():
@startuml
title 作画 通常の場合
participant "監督" as Director
participant "演出" as EpisodeDirector
participant "総作画監督" as ChiefAnimationDirector
participant "作画監督" as AnimationDirector
participant "原画" as KeyAnimator
participant "動画" as Inbetweener