Skip to content

Instantly share code, notes, and snippets.

View ronantreacy's full-sized avatar

Ronan ronantreacy

View GitHub Profile
@ronantreacy
ronantreacy / subject.ts
Created October 30, 2018 09:25
Comparison of Angular `Subject` and `BehaviorSubject`
var behaviorSubject = new Rx.BehaviorSubject(0);
var subject = new Rx.Subject();
subject.subscribe(v => {
console.log('SubjectObserver: ' + v)
});
behaviorSubject.subscribe(v => {
console.log('BehaviorSubjectObserver: ' + v)
});
@ronantreacy
ronantreacy / create_exo_browser.sh
Created August 25, 2014 09:50
A script for building the breach exo browser
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$PATH":`pwd`/depot_tools
export GYP_GENERATORS='ninja'
if [ `uname` == 'Darwin' ]; then
export GYP_DEFINES=mac_sdk=10.8
fi
echo 'p' | svn ls https://src.chromium.org/chrome
echo 'p' | svn ls https://sctp-refimpl.googlecode.com/svn/trunk
echo 'p' | svn ls https://cld2.googlecode.com/svn/trunk
mkdir chromium && cd chromium