Skip to content

Instantly share code, notes, and snippets.

View rnmeow's full-sized avatar
💻
Coding

Connor Kuo rnmeow

💻
Coding
View GitHub Profile
HTML 31 mins █████████▊░░░░░░░░░░░ 47.0%
Go 27 mins ████████▍░░░░░░░░░░░░ 40.2%
JavaScript 6 mins ██░░░░░░░░░░░░░░░░░░░ 9.9%
Image (... 1 min ▌░░░░░░░░░░░░░░░░░░░░ 2.9%
Text 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.0%
“To invent, you need a good imagination and a pile of junk.”
— Thomas Edison
Updated at 27 Jul 2024, 04:17:23 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%