This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 50fps | |
convert -delay 2 -loop 0 -layers OptimizeFrame input*.png output.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 60fps | |
ffmpeg -r 60 -i input%03d.png -crf 10 -b:v 1M output.webm | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 60fps | |
ffmpeg -r 60 -i input%03d.png -c:v hevc_videotoolbox -colorspace bt2020nc -color_trc bt709 -color_primaries bt2020 -vf setparams=color_primaries=bt2020:color_trc=bt709:colorspace=bt2020nc -alpha_quality 0.9 -vtag hvc1 -b:v 1M output.mov | |
# without colorspace | |
#ffmpeg -r 60 -i input%03d.png -c:v hevc_videotoolbox -alpha_quality 0.9 -vtag hvc1 -crf 10 -b:v 1M output.mov | |
# too large | |
#ffmpeg -r 60 -i input%02d.png -c:v prores_ks output.mov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ffmpeg -i input.mov -crf 10 -b:v 1M output.webm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {execSync} from "child_process" | |
function zeroPadding(num, qty) { | |
return `${"0".repeat(qty)}${num}`.slice(qty * -1); | |
} | |
async function main(){ | |
for(let i=0;i<100;i+=1){ | |
const text=`image${zeroPadding(i,2)}`; | |
const filename=`${text}.jpg`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {IDestroyOptions,Sprite,Texture} from "pixi.js" | |
import lottie, { AnimationConfigWithPath, AnimationDirection, AnimationItem, AnimationSegment } from "lottie-web"; | |
interface LottieSpriteParams{ | |
path?:string; | |
animationData?:Object; | |
loop?:boolean; | |
autoplay?:boolean; | |
onConfigReady?:()=>void, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
.run{ | |
} | |
th,td{ | |
border:1px solid #000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AmmoObjectSweeper{ | |
constructor(ammo){ | |
this.ammo = ammo; | |
this.temporaryObjects = []; | |
this.permanentObjects = []; | |
} | |
markTemporary(object){ | |
this.temporaryObjects.push(object); | |
return object; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run -it --rm \ | |
-p 80:80 \ | |
--name temp_certbot \ | |
-v "/etc/letsencrypt:/etc/letsencrypt" \ | |
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \ | |
certbot/certbot certonly \ | |
--standalone \ | |
--agree-tos \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function range(start, stop) { | |
if (stop == null) { | |
return range(0, start); | |
} | |
if (stop < start) { | |
throw new Error("stop < start"); | |
} | |
return [...Array(stop - start).keys()].map((e) => e + start); | |
} |
NewerOlder