Skip to content

Instantly share code, notes, and snippets.

@kwv
kwv / RepositoryWrapper.ts
Last active March 15, 2018 02:28
RXJS couchdb sync
// https://forum.ionicframework.com/t/ionic-2-best-way-to-use-observables-and-local-storage-couchdb-with-custom-server-db/51133/3
constructor() {
//observable that is notified of new records when connected and authenticated
this.pendingSync$ = new Observable(observer =>
this._pendingSyncObserver = observer).share();
//observable of all pending records for user
this.recordStoreObserver = new BehaviorSubject(undefined);
@kwv
kwv / GIF-Screencast-OSX.md
Created December 12, 2017 13:29 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: