Skip to content

Instantly share code, notes, and snippets.

View yowainwright's full-sized avatar
👦
Dad life!

Jeff Wainwright yowainwright

👦
Dad life!
View GitHub Profile
@yowainwright
yowainwright / _README.md
Last active April 6, 2023 05:15
Pyspark vs Polars Utils

Polars vs Pyspark Utils

The following files are util functions for easier Polars and Pyspark conversion development.

@yowainwright
yowainwright / README.md
Last active January 25, 2024 09:23
Build your own Dependabot

Build Your Own Dependabot in 5 minutes

Scope: This project focuses purely on JavaScript and, sure, Typescript 😎 but the same patterns could be applied to other languages and/or systems.


Preface, AKA The Problem

Dependabot is great! Why did I learn how I could replace it?

@yowainwright
yowainwright / $README.md
Last active December 21, 2022 19:27
Run Intel Mac Terminal Commands On Your M1 Mac Like A Boss In 5 Minutes Or Less

Run Intel Mac Terminal Commands On Your M1 Mac Like A Boss In 5 Minutes Or Less

After using terminals (iTerm, Terminal, Kitty) with an M1 Mac without issue for over a year, I finally came upon an issue that I couldn’t solve without using Rosetta. Rosetta is Mac software to run Intel Mac terminal commands on an M1 Mac. My issue initially came from trying to use Pyenv to install and use different versions of Python across multiple projects. After installing Rosetta, I initially used it by adding a custom flag to commands like this arch -x86_64 . This worked for me but was really error prone, “Did I forget the flag? Did I add the flag in the correct place?”.


This document describes solving M1 Mac vs Intel Mac terminal command discrepancies by creating a copy of your terminal and setting it up to run Intel Mac terminal commands using Rosetta. Although the process of making a Rosetta termi

@yowainwright
yowainwright / README.md
Last active December 21, 2022 19:36
A Node CLI program example

Node CLI Program to Execute Standalone Node Script

The following file(s) aim to display a pattern of node script development.
In this pattern the CLI program is built to execute the standalone node script.

Writing Node Scripts

  1. It is a common pattern to write a script.
  2. It is a common pattern to write a CLI program to run a script.
@yowainwright
yowainwright / bold-list-headers.md
Last active December 12, 2017 19:07
Bold list headers with `.md`

Bold List Headers in Markdown

This is a test for the look of bold list headers in markdown.

The goal of this gist is to examine using <header> tags or <strong> tags.


List header that is bold with the <h4> tag.

  • List Header 1 code

@yowainwright
yowainwright / npm-clutch-cmds.md
Last active December 21, 2022 19:37
NPM clutch cmds ✇

NPM clutch cmds ✇

  • clean cache

    Run an offline verification of existing cache contents

     npm cache verify

    Run cache clear for saving disk space purpose

     npm cache clean --force
@yowainwright
yowainwright / observer.js
Last active December 14, 2017 02:26
ES5/6 Observer 👀
/*
ES5/6 Observer 👀
---
- Like a promise (sort of) but will work in older browsers
- With Babel, this will transpile to something very similar to want is written
- Note the error
- both callback, err will return empty strings by default
- bool is false by default
*/
const observer = (bool = false, callback = () => '', iterator = 10, maxTime = 300, err = () => '') => {
@yowainwright
yowainwright / darn-characters-i-forget.md
Last active June 28, 2018 09:23
Darn characters I forget 🤷

Darn Characters I Forget 🤷

  • is the Command (cmd)() key

  • is the Control key

  • is the Option (alt) key

  • is the Shift key

  • is the Caps Lock key

  • fn is the Function key


@yowainwright
yowainwright / head.html
Last active December 10, 2017 00:18
Favicon Head Gist 🖼
<!-- android -->
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png">
<!-- apple -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<!-- favicon -->
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<!-- manifest -->
<link rel="manifest" href="/manifest.json">
@yowainwright
yowainwright / fav-colors.css
Last active December 9, 2017 19:50
Fav hex colors 🖍
/* usual suspects 👥 */
--blue: blue; /* yep, it's just the truth */
--redpink: #FB2743; /* I saw it on ASOS. I like what they're doing with blue. */
--floralwhite: #fffcf3 #fff floralwhite hsl(45,100,97)rgb(255,252,243); /* I saw it on Cosma Schema. */
/* off the beaten path, but weird and refreshing 👨‍🎨 */
--lightpurple: #E2D7FE;
--cartoonflesh: #FFAEA2;
--deeputramarine: #152783;