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}`
“Technology has to be invented or adopted.”
— Jared Diamond
Updated at 21 May 2024, 04:14:17 GMT+8
JavaScript 10 mins ██████████▍░░░░░░░░░░ 50.0%
TypeScript 9 mins █████████▎░░░░░░░░░░░ 44.4%
Astro 0 secs ▉░░░░░░░░░░░░░░░░░░░░ 4.3%
JSON 0 secs ▎░░░░░░░░░░░░░░░░░░░░ 1.3%
CSS 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.1%