Skip to content

Instantly share code, notes, and snippets.

View rnmeow's full-sized avatar
💻
Coding

Connor Kuo rnmeow

💻
Coding
View GitHub Profile
TypeScript 2 hrs 48 mins ██████████▊░░░░░░░░░░ 51.5%
JavaScript 1 hr 46 mins ██████▊░░░░░░░░░░░░░░ 32.7%
JSON 40 mins ██▌░░░░░░░░░░░░░░░░░░ 12.3%
TSConfig 7 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.3%
INI 1 min ▏░░░░░░░░░░░░░░░░░░░░ 0.6%
“Freedom is the right to live as we wish.”
— Epictetus
Updated at 1 Jun 2024, 04:14:12 GMT+8
@rnmeow
rnmeow / adobe_ae_timers.js
Last active April 21, 2023 14:42
Modern JavaScript code of music timer for Adobe After Effects.
/* 1. Timer */
function padZero (n) {
if (n < 10) return '0' + n;
else return n.toString()
}
t = Math.floor(Math.max((time - inPoint), 0));
min = Math.floor((t % 3600) / 60);
sec = padZero(Math.floor(t % 60));
`${min}:${sec}`
TypeScript 2 hrs 28 mins ██████░░░░░░░░░░░░░░░ 29.0%
Astro 1 hr 52 mins ████▌░░░░░░░░░░░░░░░░ 21.9%
JSON 1 hr 48 mins ████▍░░░░░░░░░░░░░░░░ 21.2%
JavaScript 35 mins █▍░░░░░░░░░░░░░░░░░░░ 7.0%
Other 31 mins █▎░░░░░░░░░░░░░░░░░░░ 6.2%