Skip to content

Instantly share code, notes, and snippets.

@monachilada
monachilada / gatsby-config.js
Last active October 16, 2020 19:03
Sample gatsby-config.js enabling live preview in Craft CMS
const { createHttpLink } = require('apollo-link-http');
const fetch = require('node-fetch');
const store = require('store');
const sourceNodes = require('gatsby/dist/utils/source-nodes');
require('dotenv').config();
const craftGqlUrl = process.env.CRAFT_GQL_URL;
const craftGqlToken = process.env.CRAFT_GQL_TOKEN;
module.exports = {
@spivurno
spivurno / gw-gravity-forms-edit-entries.php
Last active December 19, 2021 01:01
Gravity Wiz // Gravity Forms // Edit Entries on Frontend — https://gravitywiz.com/edit-gravity-forms-entries-on-the-front-end/
<?php
/**
* --------------------------------------------------------------------
* STOP! There's a better way to do this now:
* https://gravitywiz.com/edit-gravity-forms-entries-on-the-front-end/
* --------------------------------------------------------------------
*
* Gravity Wiz // Gravity Forms // Edit Entries
*
* Automatically populate a form with data based on an entry ID and update that entry on submission.
@redoPop
redoPop / .gitignore
Created June 18, 2010 22:08
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your