• About
  • Blog
  • Uses
  • Sponsor

Code Snippets.

These are a collection of code snippets I've used in the past and saved. Some are Serverless Functions, which include set up instructions. Others are anything from random CSS snippets to Node.js scripts.

Delve

Delve

Safely get a dot-notated path within a nested object, with ability to return a default if the full key path does not exist or the value is undefined

Stringify query parameters

Stringify query parameters

Download a Directus Example

Download a Directus Example

Generate Slugs with Flows

Generate Slugs with Flows

Use Directus Flows to generate slugs

Buttondown

Buttondown

Subscribe to a newsletter.

Buttondown

Buttondown

Get all subscribers.

Remix

Remix

Subscribe to a newsletter

Print Object

Print Object

Gumroad

Gumroad

Sendgrid

Sendgrid

useOnClickOutside

useOnClickOutside

useInterval

useInterval

useStickyState

useStickyState

Hasura

Hasura

Loading Progress

Loading Progress

Slack

Slack

Range

Range

useHasMounted

useHasMounted

useAxios

useAxios

useLocalStorage

useLocalStorage

Tiny ID

Tiny ID

API CRUD Route

API CRUD Route

Debounce

Debounce

Not Playing

–

Spotify

AboutBlogUsesSponsor

© 2024 Roger Stringer. All rights reserved.