Tuesday, February 7, 2023

胡鑫宇录音笔

 



https://cj.sina.com.cn/articles/view/1655444627/62ac149302002hmdr?sudaref=www.google.com&display=0&retcode=0

https://news.sina.cn/sh/2023-01-30/detail-imycyiem0979443.d.html?wm=3049_0015


Saturday, January 21, 2023

breaking bad

-  Is money that tight?

-Yeah

- You know we can always help out

- No Marie, You know Walt, He would just...

- Speak of the devil

- Hey hi Marie. How're you, what's up?

- Nothing much, how's things with you?

- Good good


Why don't you do the grocery shopping?

And then you can get whatever you want.

It's not that hard.

Is there a funeral today?

Oh Christ do I look that bad?

Mom got a job.

Do you think it's a good idea in you condition?

No, no the Doctor said I can work up until I go into labor.

And it's just an office job, I'm just sitting on my butt.

Monday, January 16, 2023

 The complete 2023 Web Development Bootcamp

1. 

https://www.keybr.com/

https://www.codeply.com/

https://balsamiq.cloud/

Sunday, January 1, 2023

 Kumon FII 1a

lanky, rucksack, plod, pout, contempt, sulk, unravel, prod, scowl, defiant, obstinate, hoodlum, scurry, trudge


FII 6a

sabotage, apprehensive, edgy


Thursday, December 22, 2022

RxJS mergeMap

 flatMap is deprecated and replaced by mergeMap

import { of, mergeMap, interval, map, take } from 'rxjs';

const letters = of('a', 'b', 'c');
const result = letters.pipe(
mergeMap((x) =>
interval(1000).pipe(
take(4),
map((i) => x + i)
)
)
);

result.subscribe((x) => console.log(new Date().toISOString()x));

// Results in the following:
// a0
// b0
// c0
// a1
// b1
// c1

RxJS switchmap example

 RxJS switchmap example, easy to understand

https://stackblitz.com/edit/rxjs-switchmap-example-1-vslesu?file=index.ts

import { interval } from 'rxjs';
import { take, switchMap, map, flatmap } from 'rxjs/operators';

let outer$ = interval(5000).pipe(take(2));

let combined$ = outer$.pipe(
switchMap((x) => {
return interval(2000).pipe(
take(3),
map((y) => `outer ${x}: inner ${y}`)
);
})
);

/*
5 seconds: the inner observable is started
7 seconds: 0 0
9 seconds: 0 1
10 seconds (now the second outer$ comes, the inner observable is unsubscribed)
12 seconds: 1 0
14 seconds: 1 1
16 seconds: 1 2
*/

console.log(new Date().toISOString());
combined$.subscribe((result) =>
console.log(new Date().toISOString() + ' ' + `${result}`)
);


Wednesday, December 14, 2022

rxjs note - Angular - The Complete Guide

 

1. 

  1. In order to follow along smoothly with the course examples, make sure you install RxJS v6 by running

    In addition, also install the rxjs-compat package:

  2. To get discount on Max's courses, go to https://academind.com/courses
  3. 3.
  4. https://www.learnrxjs.io/
  5. 4.
  6. Use Subject instead of EventEmitter, emit->subject.next
  7. 5.