A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
This file contains hidden or 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
// Tracking cursor position in real-time without JavaScript | |
// Demo: https://twitter.com/davywtf/status/1124146339259002881 | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strings" | |
) |
This file contains hidden or 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
# Requirements: | |
# - curl | |
# - pup (https://github.com/ericchiang/pup) | |
# - npm-dependents (https://www.npmjs.com/package/npm-dependents) | |
curl -s 'https://www.npmjs.com/~timdp' | \ | |
pup '.collaborated-packages a text{}' | \ | |
xargs -n1 -I % sh -c 'echo -n %:\ ; npm-dependents % --list' |
This file contains hidden or 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
Application('System Events') | |
.processes['SystemUIServer'] | |
.menuBars | |
.menuBarItems | |
.whose({ | |
name: 'Notification Center' | |
}) | |
.menuBarItems() | |
.reduce(function(a, b) { | |
return a.concat(b); |
This file contains hidden or 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
#Apache httpd Remote Denial of Service (memory exhaustion) | |
#By Kingcope | |
#Year 2011 | |
# | |
# Will result in swapping memory to filesystem on the remote side | |
# plus killing of processes when running out of swap space. | |
# Remote System becomes unstable. | |
# | |
use IO::Socket; |