Skip to content

Instantly share code, notes, and snippets.

@osadan
osadan / introrx.md
Created January 31, 2017 10:35 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
// Visual regression
http://responsivenews.co.uk/post/56884056177/wraith
https://www.npmjs.org/package/grunt-photobox
http://cburgmer.github.io/csscritic/
https://github.com/Huddle/PhantomCSS
http://siteeffect.io/
// CSS test
http://csste.st/techniques/
var safariDebug = ( navigator.platform.indexOf("iPhone") < 0 && navigator.platform.indexOf("iPod") < 0 && navigator.platform.indexOf("iPad") < 0 );
if(safariDebug)
{
PhoneGap.run_command = function()
{
if (!PhoneGap.available || !PhoneGap.queue.ready)
return;
// 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;