Skip to content

Instantly share code, notes, and snippets.

View azoom-nguyen-viet-hoang-03's full-sized avatar

Nguyen Viet Hoang azoom-nguyen-viet-hoang-03

View GitHub Profile
@azoom-nguyen-viet-hoang-03
azoom-nguyen-viet-hoang-03 / 00-typescript-esm.md
Created May 16, 2024 04:02 — forked from slavafomin/00-typescript-esm.md
Using TypeScript with native ESM

Using TypeScript Node.js with native ESM

This reference guide shows how to configure a TypeScript Node.js project to work and compile to to native ESM.

Rationale

CommonJS module system was introduced by the Node.js developers due to the lack of the notion of "modules" in the original JavaScript (ECMAScript) language specification at that time. However, nowadays, ECMAScript has a standard module system called ESM — ECMAScript Modules, which is a part of the accepted standard. This way CommonJS could be considered vendor-specific and obsolete/legacy. Hopefully, TypeScript ecosystem now supports the "new" standard.

So the key benefits are:

@azoom-nguyen-viet-hoang-03
azoom-nguyen-viet-hoang-03 / sassas.md
Created March 7, 2024 16:48 — forked from AdamMarsden/sassas.md
Sass Architecture Structure

Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|

price_room_without_tax(1):

  • sk_rooms.include_tax = 0 (2)
    • has link to sk_room_charge_hour_weeks
      • has link to sk_room_charge_days
        • price_room_without_tax = sum prices of each times slot (sk_room_charge_hour_weeks.price + sk_room_charge_early_days.price + sk_room_charge_days.price) + sk_room_charge_utility_times.price
      • not has link to sk_room_charge_days
        • price_room_without_tax = sum prices of each times slot (sk_room_charge_hour_weeks.price + sk_room_charge_early_days.price + sk_room_charge_weeks.price + sk_room_charge_months.price) + sk_room_charge_utility_times.price
    • not has link to sk_room_charge_hour_weeks
      • has link to sk_room_charge_days
  • price_room_without_tax = sum prices of each times slot (sk_room_charge_hour.price + sk_room_charge_early_days.price + sk_room_charge_days.price) + sk_room_charge_utility_times.price