Skip to content

Instantly share code, notes, and snippets.

View with-heart's full-sized avatar
❤️‍🔥
growing love

with-heart with-heart

❤️‍🔥
growing love
View GitHub Profile
console.log('tldraw embed test!')
@with-heart
with-heart / Component.jsx
Created July 29, 2022 16:11
react async fetching
import { useEffect, useState } from 'react'
export const Component = () => {
const [whatevers, setWhatevers] = useState([])
const [isLoading, setIsLoading] = useState(false)
const [error, setError] = useState()
useEffect(() => {
const loadWhatevers = async () => {
// show loading status
@with-heart
with-heart / channels.md
Created May 10, 2022 23:29
Dev Guild Channels
  • Channels
    • List
      • 42 channels total
      • Grouped by Discord category
      • Legend
        • 🟢 = keep
        • 🟡 = keep if someone takes ownership
        • 🟠 = keep but move
        • 🔴 = archive
  • ❓ = not sure
@with-heart
with-heart / hashnode-editor-toggle.js
Last active March 19, 2022 21:47
Tampermonkey script for toggling Hashnode editor tabs
// ==UserScript==
// @name Hashnode Editor Toggle
// @namespace https://github.com/with-heart
// @author with-heart <with.heart@pm.me>
// @version 0.0.6
// @description Toggle between the Write and Preview tabs in the Hashnode editor
// @match https://hashnode.com/draft/*
// @updateURL https://gist.githubusercontent.com/with-heart/78e459cc0ba2df21302153e26ea9f6b2/raw/hashnode-editor-toggle.js
// @downloadURL https://gist.githubusercontent.com/with-heart/78e459cc0ba2df21302153e26ea9f6b2/raw/hashnode-editor-toggle.js
// ==/UserScript==
@with-heart
with-heart / keyboard.md
Created January 13, 2022 17:43
keybase.md

Keybase proof

I hereby claim:

  • I am with-heart on github.
  • I am withheart (https://keybase.io/withheart) on keybase.
  • I have a public key ASAbfkkWDJS1LCfX8i5BssCIYzlkL8qZORlC0Xr57nj3cwo

To claim this, I am signing this object:

@with-heart
with-heart / m1solana.md
Created November 8, 2021 14:32 — forked from billyjacoby/m1solana.md
Process to get Solana and Anchor working on M1 based Macs

How to install Solana & Anchor on M1 Macs without Rosetta

Versions info:

  • node: 17.0.1
  • homebrew: 3.3.2
  • npm: 8.1.0
  • solana-cli: 1.9.0

install rust

@with-heart
with-heart / CHANGELOG.md
Created March 11, 2021 14:00
sample output from `changeset version --globalChangelog`

Changelog

@chakra-ui/modal@1.6.1

Patch Changes

  • 79ff8e84e #3427 Thanks @TheAsda! - - Add drawer example to modal readme
  • Fix github references in drawer and alert-dialog docs
@with-heart
with-heart / machine.js
Last active September 25, 2020 15:59
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@with-heart
with-heart / SketchSystems.spec
Created March 19, 2019 13:42
Income Calculator*
Income Calculator*
Steps*
incomeType*
SUBMIT if employed by other -> income
SUBMIT -> frequency
frequency
SUBMIT -> income
income
@with-heart
with-heart / SketchSystems.spec
Last active March 19, 2019 14:22
Traffic Light*
Traffic Light*
Green*
timer -> Yellow
Yellow
timer -> Red
Red
timer -> Green