Skip to content

Instantly share code, notes, and snippets.

other pane cx o
close pane cx 0
go to end of line ce
go to start of line ca
go to end of file m>
go to start of file m<
go to forward word mf
go to back word mb
import axios from 'axios'
import cache from '../utils/cache'
export function get(slug) {
const url = `${process.env.GILBERT_URL}/api/v1/content/pages/${slug}`
const call = axios.get(url)
return cache({
key: slug,
exp: 120,
@jackcallister
jackcallister / babel.config.json
Created July 11, 2020 21:39
React Webpack Babel Minimal Setup (2020)
{
"presets": ["@babel/preset-react", "@babel/preset-env"]
}
<html>
<head>
<script defer src=https://cdn.jsdelivr.net/npm/p5></script>
<script defer src=https://cdn.jsdelivr.net/npm/p5/lib/addons/p5.dom.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/p5/lib/addons/p5.sound.min.js></script>
<script src="js/lib/toxiclibs.js"></script>
<script src="vector.js"></script>
<!-- Select which file to run -->