Skip to content

Instantly share code, notes, and snippets.

@Delapouite
Delapouite / logger-middleware.js
Created August 12, 2015 10:54
Currying with ES6 fat arrows
// example taken from redux middleware docs : http://gaearon.github.io/redux/docs/advanced/Middleware.html
// ES5
function logger (store) {
return function (next) {
return function (action) {
console.log('dispatching', action);
var result = next(action);
console.log('next state', store.getState());
return result;
@wrburgess
wrburgess / gist:3711050
Created September 13, 2012 00:43
Permanently remove file from Git history

Reference

Remove sensitive files from Git/Github

In Terminal

git filter-branch --index-filter 'git rm --cached --ignore-unmatch [file path/name]' --prune-empty --tag-name-filter cat -- --all

Example: