Skip to content

Instantly share code, notes, and snippets.

View yannbf's full-sized avatar
💻
Busy!!

Yann Braga yannbf

💻
Busy!!
View GitHub Profile
import { IconRegistry } from '@dna/core/icon';
import { faArrowsH, faArrowsV } from '@fortawesome/pro-regular-svg-icons';
import { styled } from '@storybook/theming';
import React, { FunctionComponent } from 'react';
IconRegistry.addIcons(faArrowsH, faArrowsV);
export interface ComponentSizeProps {
children?: JSX.Element;
height?: string;
@luciopaiva
luciopaiva / walksync.js
Last active October 29, 2020 20:24 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
#!/usr/bin/env node
const
path = require("path"),
fs = require("fs");
/**
* List all files in a directory recursively in a synchronous fashion
*
* @param {String} dir