This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This document now exists on the official ASP.NET core docs page.
| class AppComponent { | |
| @ViewChild('btnPlus') btnPlus; | |
| @ViewChild('btnMinus') btnMinus; | |
| ngOnInit() { | |
| const start = 0; | |
| var plus$ = Observable.fromEvent(this.getNativeElement(this.btnPlus), 'click'); | |
| var minus$ = Observable.fromEvent(this.getNativeElement(this.btnMinus), 'click'); | |
| var plusOrMinus$ = Observable.merge(plus$.mapTo(1), minus$.mapTo(-1)); | |
| plusOrMinus$ | |
| .scan((acc,curr) => acc+curr, start) |
| private static readonly string[] tenHoursOfFun = | |
| { | |
| "https://www.youtube.com/watch?v=wbby9coDRCk", | |
| "https://www.youtube.com/watch?v=nb2evY0kmpQ", | |
| "https://www.youtube.com/watch?v=eh7lp9umG2I", | |
| "https://www.youtube.com/watch?v=z9Uz1icjwrM", | |
| "https://www.youtube.com/watch?v=Sagg08DrO5U", | |
| "https://www.youtube.com/watch?v=5XmjJvJTyx0", | |
| "https://www.youtube.com/watch?v=IkdmOVejUlI", | |
| "https://www.youtube.com/watch?v=jScuYd3_xdQ", |
| # mkfs.vfat -n multi-linux /dev/sdc1 | |
| # mount /dev/sdc1 /media/usb | |
| # mkdir /media/usb/{boot,iso} | |
| # grub-install --force --no-floppy --boot-directory=/media/usb/boot /dev/sdc | |
| ... download a bunch of isos ... | |
| # ls /media/usb/iso | |
| debian-7.0.0-amd64-firmware-netinst.iso* grml64-full_2013.02.iso* memtest86+-4.20.bin* tails-i386-0.17.2.iso* | |
| debian-live-7.0.0-amd64-gnome-desktop+nonfree.iso* kali-linux-1.0.3-amd64.iso* memtest86+-4.20.iso* ubuntu-13.04-desktop-amd64.iso* |