Skip to content

Instantly share code, notes, and snippets.

View a-churchill's full-sized avatar

Andrew Churchill a-churchill

View GitHub Profile
@a-churchill
a-churchill / README.md
Last active April 20, 2024 09:49
Documentation Search in Sanity

Documentation Search in Sanity

This Gist contains a sample query for searching text content in GROQ, Sanity's custom query language. We use something similar to this for Causal's documentation site. See more on our blog!

@a-churchill
a-churchill / README.md
Created April 8, 2024 22:09
Importing Markdown to Sanity

Importing Markdown to Sanity

This Gist contains code we used at Causal to import our old Markdown documentation content into Sanity. See more on our blog!

@a-churchill
a-churchill / README.md
Last active November 11, 2022 05:52
Next.js Dockerfile

This is the Dockerfile we use at Causal to deploy Next.js. It is loosely based on the template provided by Vercel here.

@a-churchill
a-churchill / prepare_cow.py
Created September 2, 2022 18:31
Runs `prepare_cow` against every model in the file `model_ids` and puts the results in a SQLite database
# Runs 'prepare_cow' against every model in the file 'model_ids' and puts
# the results in a sqlite database.
# The first argument is the name of the run e.g. the branch name. These
# can be compared later.
# Written by: kevin@causal.app
# Modified by: andrew@causal.app
import os