Skip to content

Instantly share code, notes, and snippets.

View justintien's full-sized avatar
🍞
Jiapan

Justin Tien (Yi-Ming Tien) justintien

🍞
Jiapan
View GitHub Profile
@justintien
justintien / tc_zhangyong1979.txt
Created March 25, 2026 04:24 — forked from stakira/tc_zhangyong1979.txt
常用國字標準字體表
常用國字標準字體表 (4808字)
一丁七三下丈上丑丐不丙世丕且丘丞丟並丫中串丸凡丹主乃久么之尹乍乏乎乒乓
乖乘乙九也乞乩乳乾亂了予事二于云井互五亙些亞亟亡交亦亥亨享京亭亮人仁什
仃仆仇仍今介仄以付仔仕他仗代令仙仞仿伉伙伊伕伍伐休伏仲件任仰仳份企位住
佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣作你伯低伶余佝佯依侍佳使佬供例來侃佰
併侈佩佻侖佾侏信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞倌倍倣俯倦倥俸
倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉偺偽停假偃偌做偉健偶偎
偕偵側偷偏倏傢傍傅備傑傀傖傘傭債傲傳僅傾催傷傻傯僧僮僥僖僭僚僕像僑僱億
儀僻僵價儂儈儉儒儘儔儐優償儡儲儷儼兀元允充兄光兇兆先兌克免兔兒兕兗兜兢
@justintien
justintien / FFmpeg 常用轉檔指令整理與說明
Created July 28, 2025 07:16
FFmpeg 常用轉檔指令整理與說明
# FFmpeg 常用轉檔指令整理與說明
本文件整理了常見的 `ffmpeg` 用法,包括 H.264 Profile 轉換、影片解析度縮放、保留音訊等操作方式,並提供詳細參數說明。
- 這裡有各種格式影片素材可以下載: https://test-videos.co.uk/
## 1. 使用 FFmpeg 產生有畫面與聲音的測試影片
```sh
resolution=640x360 # 畫面大小
編號 作品名稱 發行日期 首發平台 其他平台(部分) 維基百科連結
1 Final Fantasy 1987-12-18 Famicom NES、PlayStation、WonderSwan Color、GBA、PSP、iOS、Android、Windows、Switch、PS4 Final Fantasy
2 Final Fantasy II 1988-12-17 Famicom PlayStation、WonderSwan Color、GBA、PSP、iOS、Android、Windows、Switch、PS4 [Final Fantasy II](https://en.wikiped
@justintien
justintien / wmp_h.265_hevc.md
Created August 21, 2024 02:36 — forked from Aldaviva/wmp_h.265_hevc.md
Play H.265/HEVC videos in Windows Media Player (Classic) without a third-party codec pack or media player. Tested using Microsoft.HEVCVideoExtension_2.0.60091.0_x64__8wekyb3d8bbwe with WMP 12.0.20348.1311 on Windows Server 2022 21H2 and 12.0.22621.1105 on Windows 11 22H2.

Download

  1. Go to https://store.rg-adguard.net.
  2. Search for the HEVC Video Extensions from Device Manufacturer (Microsoft.HEVCVideoExtension) app by entering the following store URL.
    https://www.microsoft.com/en-us/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq
    
    • Do not use the normal HEVC Video Extensions app URL, because that can't play HEVC videos in Windows Media Player for some inscrutable reason.
  3. Download the x64 appx file, or whatever your Windows architecture is.
    • You may have to right click › Save Link As because the URL scheme is http, not https, if your browser is set to enforce HTTPS-only mode.
  • If it tries to save as a filename that's just a GUID, you may copy the correct .appx filename and save it as that instead.
@justintien
justintien / bytesToSize.js
Created June 1, 2022 08:18 — forked from lanqy/bytesToSize.js
JavaScript To Convert Bytes To MB, KB, Etc
// from http://scratch99.com/web-development/javascript/convert-bytes-to-mb-kb/
function bytesToSize(bytes) {
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
if (bytes == 0) return 'n/a';
var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
if (i == 0) return bytes + ' ' + sizes[i];
return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
};
@justintien
justintien / get-npm-package-version
Created April 28, 2022 07:37 — forked from DarrenN/get-npm-package-version
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION

前言

這兩年多虧於 VTuber 的盛行,動態捕捉從原先軟硬體價格昂貴難以上手,到現在越來越多適合獨立創作者的軟體盛行,入門的門檻也一天比一天降低許多。此表單整理我這陣子試過適合直播的動態捕捉軟體,包含 Live2D、3D、半身捕捉、全身捕捉等,希望對有興趣的人有幫助,有錯誤或補充資訊也歡迎提出。

Yan-K / 2020.06.08 社群平台:Website | Facebook | Twitter | Plurk | Twitch

【2D】- 免費

PrprLive

@justintien
justintien / JSON-intArray-converter.js
Created February 7, 2021 09:15 — forked from tomfa/JSON-intArray-converter.js
JSON to 8-bit-integer parsing (and visa versa)
// JSON to Uint8Array parsing and visa versa
// (Intended Bluetooth communication on Cordova)
var JsonToArray = function(json)
{
var str = JSON.stringify(json, null, 0);
var ret = new Uint8Array(str.length);
for (var i = 0; i < str.length; i++) {
ret[i] = str.charCodeAt(i);
}
@justintien
justintien / convert-arraybuffer.js
Created February 7, 2021 09:15 — forked from nuclearglow/convert-arraybuffer.js
ArrayBuffer <-> JSON <-> ArrayBuffer
// array buffer to JSON
const dataString JSON.stringify(Array.from(new Uint8Array(arrayBuffer)));
// send around
// JSON to ArrayBuffer
new Uint8Array(JSON.parse(dataString)).buffer
@justintien
justintien / phaser-scenes-summary.md
Created December 19, 2020 15:25 — forked from samme/phaser-scenes-summary.md
Phaser 3 Scenes Summary

Scene control

Calls without a key argument

These affect the calling scene only.

Example:

this.scene.start()