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 / 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.
> gymnasium-front-end@0.1.0 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:

pi@raspberrypi:~ $ sudo hcidump -t -x & sudo DEBUG=* node NobleDebug.js
[3] 1124
HCI sniffer - Bluetooth packet analyzer ver 5.33
device: hci0 snap_len: 1500 filter: 0xffffffff
hci setting filter to: 1600000020c10000000000400000 +0ms
hci set event mask - writing: 01010c08fffffbff07f8bf3d +32ms
2017-01-21 21:06:49.104327 < HCI Command: Set Event Mask (0x03|0x0001) plen 8
2017-01-21 21:06:49.104327 < HCI Command: Set Event Mask (0x03|0x0001) plen 8
2017-01-21 21:06:49.104327 < HCI Command: Set Event Mask (0x03|0x0001) plen 8
Mask: 0xfffffbff07f8bf3d