Skip to content

Instantly share code, notes, and snippets.

View mbifulco's full-sized avatar
🍱
Hungry (always)

Mike Bifulco mbifulco

🍱
Hungry (always)
View GitHub Profile
@mbifulco
mbifulco / how-to-dependency.md
Created November 14, 2024 17:12
Need to debug a problem in one of your npm dependencies? I gotchu.

// so you're trying to debug a problem in an npm dependency... "foo-some-dependency": "^1.1307.0",

// here's how to tell package.json to use your fork of the library // so you can debug more easily

// 1. clone the dependency repo to a local directory

git clone https://github.com/user/foo-some-dependency.git /src/working-dir

@mbifulco
mbifulco / url-search-params-update.js
Created November 16, 2021 17:07
How to set url search params without navigating
const url = new URL(window.location);
url.searchParams.set('h', 100); // add hue value here
url.searchParams.set('s', 0); // add s value here
url.searchParams.set('v', 0); // add v value here
// tell the browser to update the URL
window.history.pushState({}, '', url);
@mbifulco
mbifulco / ISSUE_TEMPLATE.md
Created July 13, 2021 19:59
Basic Issue and PR Templates

===== NOTE: For all issues, please include:

Description

Screenshots / Mockups

here

===== NOTE: if this is a bug report, also include the following:

@mbifulco
mbifulco / styles.html
Created May 11, 2020 14:39
convertkit email custom css embed
<style>
ul, ol {
list-style-position: outside !important;
padding-inline-start: 20px !important;
}
h1, h2 ,h3, h4, h5, h6 {
font-family: 'SF Compact Display',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol' !important;
font-weight: 700 !important;
margin: 1em 0 .625em !important;
line-height: 1.16em !important
@mbifulco
mbifulco / console.log
Created March 3, 2020 23:47
gatsby clean && yarn start
✘  ~/src/gymnasium/gym-front-end   feature/take5-pages ●  gatsby clean && yarn start
info Deleting .cache, public
info Successfully deleted directories
yarn run v1.22.0
$ npm run develop
npm WARN lifecycle The node binary used for scripts is /var/folders/vc/mg_v5gzj4018x9y3ksqthswc0000gn/T/yarn--1583279169752-0.07623677215775793/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> [email protected] develop /Users/mike/src/gymnasium/gym-front-end
> gatsby develop
@mbifulco
mbifulco / ISSUE_TEMPLATE.md
Created September 4, 2019 18:04
GitHub PR and Issue templates

===== NOTE: For all issues, please include:

Description

Screenshots / Mockups

here

===== NOTE: if this is a bug report, also include the following:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@mbifulco
mbifulco / remove_postgres_on_mac_os.md
Created March 20, 2019 01:45 — forked from Atlas7/remove_postgres_on_mac_os.md
Note - How completely uninstall PostgreSQL 9.X on Mac OSX

This blog post has helped me clean up my postgres development environment on Mac. So making a copy!

How completely uninstall PostgreSQL 9.X on Mac OSX

This article is referenced from stackoverflow:

If installed PostgreSQL with homebrew , enter brew uninstall postgresql

If you used the EnterpriseDB installer , follow the following step.
<!doctype html>
<html>
...code
</html>
@mbifulco
mbifulco / Keybase.md
Created January 4, 2019 21:00
Keybase.md

Keybase proof

I hereby claim:

  • I am mbifulco on github.
  • I am mbifulco (https://keybase.io/mbifulco) on keybase.
  • I have a public key whose fingerprint is 40EB C3BB 6337 D003 49CC B054 FFA1 FACC 2DDF 8CF4

To claim this, I am signing this object: