Skip to content

Instantly share code, notes, and snippets.

View jenkshields's full-sized avatar

jenkshields

View GitHub Profile
@jenkshields
jenkshields / [slug].js
Created February 22, 2021 04:40
Including inline images in Sanity's block content with Next.js's next/image
/** @jsx jsx */
import sanityClient from '../../client'
import { jsx } from 'theme-ui'
import BlockContent from '@sanity/block-content-to-react'
import Layout from '../../components/layout'
import Link from 'next/link'
import { useRouter } from 'next/router'
import Image from 'next/image'
import imageUrlBuilder from '@sanity/image-url'
The "id" argument must be of type string. Received null
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received null
at validateString (internal/validators.js:117:11)
at Module.require (internal/modules/cjs/loader.js:1044:3)
at require (internal/modules/cjs/helpers.js:86:18)
at execMethod (/private/var/mobile/Containers/Data/Application/9C912B79-B957-467B-B2FC-7CFC32CDF470/Documents/apps/JEN BLOG82743A15-5810-4F12-9BAA-9FEA2B81D4D0/src/node_modules/jest-worker/build/workers/processChild.js:128:16)
at EventEmitter.<anonymous> (/private/var/mobile/Containers/Data/Application/9C912B79-B957-467B-B2FC-7CFC32CDF470/Documents/apps/JEN BLOG82743A15-5810-4F12-9BAA-9FEA2B81D4D0/src/node_modules/jest-worker/build/workers/processChild.js:64:7)
at EventEmitter.emit (events.js:333:22)
at EventEmitter.emit (domain.js:505:15)
at ChildProcess.send (child_process.js:229:25)

Keybase proof

I hereby claim:

  • I am jenkshields on github.
  • I am jenniferk (https://keybase.io/jenniferk) on keybase.
  • I have a public key ASAG1V0YUQISg8WCV1lhrTZ23dI54qMDu4yH54DXo7rBmAo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1CZunBng8KYdoFCHbGbw9h73VG5xX8FfpG https://explorer.blockstack.org/address/1CZunBng8KYdoFCHbGbw9h73VG5xX8FfpG
@jenkshields
jenkshields / mario.c
Created May 16, 2018 01:57
pyramid builder
#include <stdio.h>
#include <cs50.h>
int main(void)
{
int height;
// prompt user for positive number less than 23
do
{
height = get_int("Height of pyramid (1 - 23):");