Anything can be an observable!! Even data that never changes!!!
const myObservable = Observable.from('Hello world'); myObservable.subscribe(data => console.log(data));It prints 'Hello world'! Amazing!!
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
  
    
      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
    
  
  
    
  | var express = require('express'); | |
| var mysql = require('mysql'); | |
| var app = express(); | |
| /// | |
| /// Create connection to MySQL database server. | |
| /// | |
| function getMySQLConnection() { | |
| return mysql.createConnection({ | 
  
    
      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
    
  
  
    
  | /* | |
| * Authenticate Django users in node.js. | |
| * | |
| * Django is great for many projects, while node.js does some fantastic | |
| * jobs that Django couldn't. For example, you may have a Django app | |
| * managing your user accounts and another real-time service or application | |
| * running on Node, then you probably will need to read Django user session | |
| * to authenticate users in the Node project. | |
| * | |
| * This gist is not production ready yet, but it demonstrates how could it | 
(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.
I'm going to cover a simple, but effective, utility for managing state and transitions (aka workflow). We often need to store the state (status) of a model and it should only be in one state at a time.
- Publishing (Draft->Approved->Published->Expired->Deleted)
 
  
    
      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
    
  
  
    
  | ## Canonical redirect for Apache | |
| # BEGIN Canonical Redirect | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] ## will match any domain that's not our main domain | |
| RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] | |
| </IfModule> | |
| # END Canonical Redirect |