(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.
| /* | |
| This example shows how you can use your data structure as a basis for | |
| your Firebase security rules to implement role-based security. We store | |
| each user by their Twitter uid, and use the following simplistic approach | |
| for user roles: | |
| 0 - GUEST | |
| 10 - USER | |
| 20 - MODERATOR |
(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.
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| var lines = { | |
| B: 'Bakerloo', | |
| C: 'Central', | |
| D: 'District', | |
| H: 'Hammersmith & Circle', | |
| J: 'Jubilee', | |
| M: 'Metropolitan', | |
| N: 'Northern', | |
| P: 'Piccadilly', |
| var sys = require('sys'), | |
| spawn = require('child_process').spawn, | |
| // args from command line | |
| filename, servers; | |
| if (process.ARGV.length < 4) { | |
| return sys.puts("Usage: node remote-tail.js filename server1 [serverN]"); | |
| } |