TONG-H

2025-02

1781Daily Snippets2025-02-112025-02-23

2025/02/23

2025/02/20

  • rxjs, ts error, Property ‘next’ does not exist on type ‘Observable<’
    • subject is an extended version of Observable, and has next defined. a subject‘s type is transformed into an observable by calling piple. however the next prop remains available.
    • for better ts practice, it’s recommended to separate the input stream(subject) from output stream(observable), like read and write operations
  • With vue3 setup syntax, install Volar and disable Vetur which is official VS Code extension for Vue 2

2025/02/12

  • currying 柯里化, transform a function that takes multiple arguments into a sequence of functions, each taking a single argument. easier to compose and chain functions

2025/02/11

2025/02/07

  • free up the space of c drive
    • reduce vitural memory, move the paging file to another drive
    • extend C: drive, move space from another drive to C: drive