Skip to content

Instantly share code, notes, and snippets.

@moniuch
moniuch / README.md
Created October 19, 2021 22:26 — forked from dsample/README.md
ASCII art diagrams

ASCI art characters for creating diagrams

Characters:

Single line

  • ASCII code 191 = ┐ ( Box drawing character single line upper right corner )
  • ASCII code 192 = └ ( Box drawing character single line lower left corner )
  • ASCII code 193 = ┴ ( Box drawing character single line horizontal and up )
  • ASCII code 194 = ┬ ( Box drawing character single line horizontal down )
@moniuch
moniuch / Bash_command_line_shortcuts.md
Created January 10, 2021 16:51 — forked from P7h/Bash_command_line_shortcuts.md
Bash command line Shortcuts

Bash command line Shortcuts

Picked these from here

Command Editing Shortcuts

Command Note
Ctrl + a go to the start of the command line
Ctrl + e go to the end of the command line
Ctrl + k delete from cursor to the end of the command line
@moniuch
moniuch / table-v1.ts
Last active July 5, 2019 09:53
Struggling with filtering on an ngrx-store sourced MatTable
// I don't want to unwrap store observables, but looks like there is no other way
export class PageComponent {
columnsToDisplay = ['firstName', 'lastName'];
students$: Observable<Student[]>;
studentsDataSource$: Observable<MatTableDataSource<Student>>;
filterCtrl = new FormControl('');
// this works, but performance-wise is doubtful
ngOnInit() {
@moniuch
moniuch / effect.ts
Created July 27, 2018 21:41
Effect resilience
.ofType(SOMETYPE).pipe(
tap(_ => console.log('effect still alive and kicking')),
map(action => action.payload),
// switchMap, mergeMap, concatMap, exhaustMap?
switchMap(payload => this.myService.putSomething(payload).pipe(
map(response => new MySuccessAction(response)),
catchError(err => of(new MyFailureAction())),
),
)