Skip to content

Instantly share code, notes, and snippets.

Avatar

Pedro Duarte peduarte

View GitHub Profile
@peduarte
peduarte / custom-vscode.css
Last active May 10, 2018
Custom CSS for VSCode using the "Custom CSS and JS Loader"
View custom-vscode.css
.monaco-tree, .part.sidebar {
font-family: "Operator Mono";
font-size: 14px;
line-height: 1.6;
}
View pedro.json
{
"Working Directory" : "\/Users\/pedroduarte",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 1,
"Red Component" : 1,
"Blue Component" : 1
},
"Rows" : 25,
"Ansi 11 Color" : {
@peduarte
peduarte / esnextbin.md
Last active Apr 13, 2020
Vanilla Throttle
@peduarte
peduarte / esnextbin.md
Last active Jan 16, 2021
Vanilla Debounce
@peduarte
peduarte / esnextbin.md
Last active Nov 6, 2016
RxJS – Suggest GH Users
View esnextbin.md
@peduarte
peduarte / _readme.md
Last active Nov 2, 2016
RxJs Observable – Get Shits from Shit Pedro Says
View _readme.md
@peduarte
peduarte / _readme.md
Last active Nov 2, 2016
Vanilla Observable – Get Shits from Shit Pedro Says
View _readme.md
View testing-react-components.txt
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
View component-helper.dust
<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>
You can’t perform that action at this time.