This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ChristmasThisYear(new Lover(), new Heart()); | |
function ChristmasThisYear(baby, heart) { | |
baby.give(heart) | |
.catch((veryNextDay) => { | |
if (veryNextDay === 'Gave it away') { | |
let someoneSpecial = new Lover(); | |
return ChristmasThisYear(someoneSpecial, heart); | |
// return tears | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -ano | findstr :<yourPortNumber> | |
taskkill /PID <typeyourPIDhere> /F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Edited by: Will Wolff-Myren <willwm@gmail.com> | |
# Last Updated: 2018-07-17 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can use the from creator and the mergeMap operator to merge an observable into the effect's Action stream. | |
Using your example: | |
@Effect() addPeopleStart$ = this.actions$ | |
.ofType( PersonActionTypes.ADD_PERSON_LIST_START ) | |
.switchMap( | |
( payload ) => { | |
return this.personService.getPeople(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm list -g --depth=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function factorial(number, start = 1) { | |
if (start == number) { | |
return number; | |
} else { | |
return start * factorial(number, start + 1); | |
} | |
} |