Skip to content

Instantly share code, notes, and snippets.

Ohad osadan

Block or report user

Report or block osadan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
osadan /
Created Jan 31, 2017 — forked from staltz/
The introduction to Reactive Programming you've been missing
View feopsconf
// Visual regression
// CSS test
View pgDebug.js
var safariDebug = ( navigator.platform.indexOf("iPhone") < 0 && navigator.platform.indexOf("iPod") < 0 && navigator.platform.indexOf("iPad") < 0 );
PhoneGap.run_command = function()
if (!PhoneGap.available || !PhoneGap.queue.ready)
View localStorageSync.js
// overriding sync to use local storage when possible
sync : function(method, model, options){
var key, now, timestamp, refresh;
if(method === 'read' && this.constants.isStoredInLocalStorage) {
// only override sync if it is a fetch('read') request
key = this.getKey();
if(key) {
now = new Date().getTime();
timestamp = $storage.get(key + ":timestamp");
refresh = options.forceRefresh;
You can’t perform that action at this time.