Skip to content

Instantly share code, notes, and snippets.

@orod
orod / docker-compose wordpress
Created May 8, 2015 14:20
docker-compose file for wordpress
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 8080:80
working_dir: /var/www/html
volumes:
- wordpress/wp-content/:/var/www/html/wp-content
@orod
orod / rxjs subjects.md
Last active February 11, 2018 04:14
Subject, ReplaySubject, BehaviorSubject in RxJS

1 source, Three subscribers
Subscriber 1 subscribes and source starts emitting
Subscriber 2 subscribes halfway
Subscriber 3 subscribes after source has completed.

import Rx from 'rxjs/Rx';

var data = [];