Skip to content

Instantly share code, notes, and snippets.

View sheelah's full-sized avatar

Sheelah Brennan sheelah

View GitHub Profile
@sheelah
sheelah / test.html
Last active September 27, 2018 15:34
HTML scaffolding test
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta http-equiv='X-UA-Compatible' content='ie=edge'>
<title>Document</title>
</head>
<body>
<script>
@sheelah
sheelah / index.js
Last active January 10, 2018 21:10
Waterwheel
const Waterwheel = require('waterwheel')
const waterwheel = new Waterwheel({
base: 'http://dev-contentacms.pantheonsite.io',
jsonapiPrefix: 'api',
timeout: 10000,
accessCheck: false,
validation: false
}).jsonapi
@sheelah
sheelah / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sheelah
sheelah / maintenance.php
Created April 1, 2015 23:38
Sample WordPress maintenance page to be shown during WP updates
<?php
$protocol = $_SERVER["SERVER_PROTOCOL"];
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) $protocol = 'HTTP/1.0';
header( "$protocol 503 Service Unavailable", true, 503 );
header( 'Content-Type: text/html; charset=utf-8' );
header( 'Retry-After: 600' ); // 10 minutes
?>
<!DOCTYPE html>
<html lang="en">
<head>