Skip to content

Instantly share code, notes, and snippets.

View g1eny0ung's full-sized avatar
🎐
❤️💛💚💙💜🖤🤍💔

Yue Yang g1eny0ung

🎐
❤️💛💚💙💜🖤🤍💔
View GitHub Profile
@gaearon
gaearon / prepack-gentle-intro-1.md
Last active May 3, 2024 12:56
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.
@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active May 10, 2024 12:07
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...i or [].reduce()

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

The problem

@g1eny0ung
g1eny0ung / 📊 Weekly development breakdown
Last active May 19, 2024 00:24
📊 Weekly development breakdown
Bash 1 hr 25 mins ███████▍░░░░░░░░░░░░░ 35.5%
JSON 37 mins ███▎░░░░░░░░░░░░░░░░░ 15.5%
Markdown 33 mins ██▉░░░░░░░░░░░░░░░░░░ 13.8%
Astro 32 mins ██▊░░░░░░░░░░░░░░░░░░ 13.4%
Go 30 mins ██▋░░░░░░░░░░░░░░░░░░ 12.6%