Vanilla Throttle esnextbin
Vanilla Debounce esnextbin
RxJS – Suggest GH Users esnextbin
RxJs Observable – Get Shits from Shit Pedro Says https://esnextb.in/?gist=11d6d8e9c0a0b4a9101bb91bacc1b898
Vanilla Observable – Get Shits from Shit Pedro Says https://esnextb.in/?gist=15f9311d3dda95dfffa3efde3c087a0d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev jsdom | |
// test-browser-env.js | |
import { jsdom } from 'jsdom'; | |
global.document = jsdom('<body></body>'); | |
global.window = document.defaultView; | |
global.navigator = window.navigator; | |
// package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<h2 class="Headline Headline--m">News headline</h2> | |
{@uiComponent name="byline" text="Tim Shipman, Political Editor" /}; | |
{@uiComponent name="dip" text="First paragraph of news content will go here..." /}; | |
{@uiComponent name="link" text="Read full story" modifider="primary" /}; | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Function to render a ui component | |
* @param params - any available parameters allowed | |
* @param params.name | |
* @return {partial} | |
*/ | |
dust.helpers.uiComponent = function (chunk, context, bodies, params) { | |
var name = context.resolve(params.name); | |
return chunk.partial('components/' + name + '/' + name, context, params); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* T2 Module | |
* | |
**/ | |
.T-2 { | |
@include medium { | |
@include tt-span(3); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* NL1 Module | |
* | |
**/ | |
.NL1 { | |
@include medium { | |
@include tt-span(9); | |
} |