Skip to content

Instantly share code, notes, and snippets.

View g1eny0ung's full-sized avatar
🎐
β€οΈπŸ’›πŸ’šπŸ’™πŸ’œπŸ–€πŸ€πŸ’”

Yue Yang g1eny0ung

🎐
β€οΈπŸ’›πŸ’šπŸ’™πŸ’œπŸ–€πŸ€πŸ’”
View GitHub Profile
@g1eny0ung
g1eny0ung / πŸ“Š Weekly development breakdown
Last active June 1, 2025 00:20
πŸ“Š Weekly development breakdown
TypeScript 3 hrs 9 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 32.0%
JSON 2 hrs 10 mins β–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 22.0%
JavaScript 1 hr 22 mins β–ˆβ–ˆβ–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 13.9%
Markdown 57 mins β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 9.8%
Go 37 mins β–ˆβ–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 6.4%
@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active May 29, 2025 09:23
Do not use forEach with async-await

Do not use forEach with async-await

TLDR: Use for...of instead of forEach() in asynchronous code.

For legacy browsers, use for(...;...;...) or [].reduce()

To execute the promises in parallel, use Promise.all([].map(...))

The problem

@gaearon
gaearon / prepack-gentle-intro-1.md
Last active March 22, 2025 07:22
A Gentle Introduction to Prepack, Part 1

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.