Skip to content

Instantly share code, notes, and snippets.


David Boland debpu06

View GitHub Profile
debpu06 / richtext.js
Created Oct 18, 2021
Rich Text Block Contentful & Gatsby
View richtext.js
import React from 'react'
import { BLOCKS, MARKS } from '@contentful/rich-text-types';
import { documentToReactComponents } from '@contentful/rich-text-react-renderer';
import { GatsbyImage, getImage } from "gatsby-plugin-image"
const Bold = ({ children }) => <b>{children}</b>;
const Text = ({ children }) => <p className="align-center">{children}</p>;
const richTextImages = {};
debpu06 / TextBlockContentFragment.js
Created Aug 31, 2020
TextBlock Gatsby-Contentful Fragment
View TextBlockContentFragment.js
import { graphql } from "gatsby"
export const TextQuery = graphql`
fragment TextBlock on ContentfulTextBlock {
bodyContent {
sys {
contentType {
debpu06 / FiftyFiftyContentFragment.js
Last active Aug 31, 2020
FiftyFiftyContent Gatsby-Contentful Fragment
View FiftyFiftyContentFragment.js
import { graphql } from "gatsby"
export const FiftyFiftyContentQuery = graphql`
fragment FiftyFiftyContent on ContentfulFiftyFifty {
sys {
contentType {
sys {
View gallery.js
debpu06 / TrackController.cs
Created Oct 10, 2018
Our API for tracking store interactions using Episerver Insights
View TrackController.cs
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
using EPiServer.Commerce.Catalog.ContentTypes;
using EPiServer.Core;
using EPiServer.Personalization;

Keybase proof

I hereby claim:

  • I am debpu06 on github.
  • I am debpu06 ( on keybase.
  • I have a public key whose fingerprint is 5F85 B734 390B E39C BC1A B71B 8AC8 CCC7 3F1B F9DF

To claim this, I am signing this object: