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 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%
@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}`
“Freedom is what you do with what's been done to you.”
— Jean-Paul Sartre
Updated at 4 Jul 2024, 04:14:55 GMT+8
Go 33 mins █████████████████████ 100.0%