A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
| /** | |
| * MIT License | |
| * | |
| * Copyright (c) 2016 Richard Adams (https://github.com/enriched) | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent
- Create a EC2 instance using
Ubuntu 14.04. - In
Secure Group Inbound Rules, add aSSH Rule(TCP, Port 22, 0.0.0.0/0)and aCustom TCP Rule(TCP, Port 1723, 0.0.0.0/0). - Optional: Associate a Elastic IP with the instance.
- SSH into the instance.
sudo apt-get install pptpd.sudo vim /etc/pptpd.conf. Uncommentlocalip 192.168.0.1andremoteip 192.168.0.234-238,192.168.0.245.sudo vim /etc/ppp/pptpd-options. Uncommentms-dnsandms-wins. Change the IP to Google's DNS like this:
| var _wr = function(type) { | |
| var orig = history[type]; | |
| return function() { | |
| var rv = orig.apply(this, arguments); | |
| var e = new Event(type); | |
| e.arguments = arguments; | |
| window.dispatchEvent(e); | |
| return rv; | |
| }; | |
| }; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.