Skip to content

Instantly share code, notes, and snippets.

View g2graman's full-sized avatar

Francesco Gramano g2graman

  • Toronto, Ontario, Canada
View GitHub Profile
@g2graman
g2graman / browserSync.js
Created November 2, 2019 12:52 — forked from martinherweg/browserSync.js
Webpack + BrowserSync + HMR
/**
|--------------------------------------------------------------------------
| gulp browser-sync
|--------------------------------------------------------------------------
*
* Browser Sync
* @description Refresh the Brwoser after File Change.
* Combined with webpack for HMR or Content Reload
*
* @package generator-mh-boilerplate
@g2graman
g2graman / browserSync.js
Created November 2, 2019 12:52 — forked from martinherweg/browserSync.js
Webpack + BrowserSync + HMR
/**
|--------------------------------------------------------------------------
| gulp browser-sync
|--------------------------------------------------------------------------
*
* Browser Sync
* @description Refresh the Brwoser after File Change.
* Combined with webpack for HMR or Content Reload
*
* @package generator-mh-boilerplate
@g2graman
g2graman / combinators.js
Created October 27, 2019 13:50 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));