Skip to content

Instantly share code, notes, and snippets.

View mightyhorst's full-sized avatar
🎯
Focusing

Mitch mightyhorst

🎯
Focusing
View GitHub Profile
@mightyhorst
mightyhorst / nestjs.package.json
Last active August 31, 2020 10:21
2. yarn workspaces - simple workspace package
{
"name": "@monorepo/nestjs",
"version": "1.0.0",
"private": true,
"dependencies": {}
}
@mightyhorst
mightyhorst / package.json
Last active August 31, 2020 09:44
1. yarn workspaces - simple
{
"name": "@monorepo/root",
"private": true,
"workspaces": {
"packages": [
"workspaces/*"
],
"nohoist": [
"workspaces/**/webpack-dev-server",
"**/babel-loader",
/**
* @requires process
*/
const util = require('util');
const exec = util.promisify(require('child_process').exec);
/**
* @requires models
*/
const {
@mightyhorst
mightyhorst / netflix-fonts.css
Last active October 14, 2025 06:14
Fonts CDN
@font-face {
font-family: 'Netflix Sans';
font-weight: 100;
font-display: optional;
src: url(https://assets.nflxext.com/ffe/siteui/fonts/netflix-sans/v3/NetflixSans_W_Th.woff2) format('woff2'),url(https://assets.nflxext.com/ffe/siteui/fonts/netflix-sans/v3/NetflixSans_W_Th.woff) format('woff')
}
@font-face {
font-family: 'Netflix Sans';
@mightyhorst
mightyhorst / walksync.js
Created July 22, 2020 22:34 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
filelist = walkSync(dir + file + '/', filelist);
}
else {
@mightyhorst
mightyhorst / description.mdx
Last active July 13, 2020 07:58
Kitset schema - example output

Hello world

Description for the playbook

Template

<style> span.badge{ -webkit-font-smoothing: antialiased; font-family: 'courier new'; font-weight: 700; display: inline-block; border-radius: 2px; border: 1px solid rgba(0,0,0,.2); padding: 0 5px;
@mightyhorst
mightyhorst / 00_postgres-docker-compose.yml
Last active November 18, 2019 06:14 — forked from onjin/docker-compose.yml
example docker compose for postgresql with db init script
postgres:
image: postgres:9.4
volumes:
# ~~~~~~~~~~~~~~
#
# @name Migrations and Seeders
# @description mapping each file as an example only, in reality you would just map the entire seeders folder
# @warning the order is important
#
# @param path_on_your_computer:path_to_init_db_folder_in_postgres_container
@mightyhorst
mightyhorst / react.index.css
Last active November 8, 2019 01:57
Webpack, Typescript and ReactJs
html{
display:block;
width:100vw;
height:100vh;
overflow:hidden;
padding: 0px;
margin: 0px;
}
body{
display:block;
@mightyhorst
mightyhorst / .storybook.addons.js
Last active November 1, 2019 05:03
Storybook setup
import '@storybook/addon-knobs/register';
import '@storybook/addon-actions/register';
import '@storybook/addon-notes/register';