Skip to content

Instantly share code, notes, and snippets.

@ganmor
ganmor / 0_concept.js
Last active Sep 5, 2015 — forked from tappleby/0_concept.js
Redux => To web worker
View 0_concept.js
const composedCreateStore = compose(
applyMiddleware(
thunkMiddleware,
dispatchIdMiddleware,
webWorkerMiddleware('/build/worker.js'),
() => promiseMiddleware,
loggerMiddleware
),
createStore
);
View Jquery Fast Click
/**
* jQuery.fastClick.js
*
* Work around some mobile browser's 300ms delay on the click event.
*
* Code based on <http://code.google.com/mobile/articles/fast_buttons.html>
* Warning will break href contained in the element bound
* @usage
* $('button').fastClick(function() { });
*