Skip to content

Instantly share code, notes, and snippets.

View kellymears's full-sized avatar

Kelly Mears kellymears

View GitHub Profile
const chalk = require('chalk')
const {join} = require('path')
const sharp = require('sharp')
const request = require('request')
const {GraphQLClient} = require('graphql-request')
const SITEURL = `http://kellymears.vagrant`
/**
* Process image
const chalk = require('chalk')
const fs = require('fs-extra')
/**
* Write a remote image to the disk
*
* @param {string} url
* @param {string} path
*/
const download = async (url, path) => {
<?php
namespace AcmeCo\Plugin;
use AcmeCo\Plugin\AssetInterface;
use Psr\Container\ContainerInterface;
/**
* Asset class.
*/
/* Custom CSS for Rock The Vote Widget */
body {
background-image: none;
background-color: transparent;
}
h1, h2, h3, h4, h5, h6, legend, label {
color: rgba(0, 0, 0, 0.9);
}
{
"name": "project",
"license": "MIT",
"workspaces": [
"config",
"web/app/plugins/blocks",
"web/app/themes/sage"
],
"private": true,
"scripts": {
const mix = require('laravel-mix'),
tw = require('tailwind')
require('laravel-mix-purgecss')
mix.sass(`resources/assets/styles/app.scss`, `styles`)
.sass(`resources/assets/styles/editor.scss`, `styles`)
.purgeCss({
enabled: mix.inProduction(),
globs: [
{
"name": "tailwind",
"version": "1.0.0",
"main": "tailwind.js",
"license": "MIT",
"devDependencies": {
"tailwindcss": "^1.1.4"
}
}
{
"name": "project name",
"private": true,
"workspaces": [
"config",
"web/app/plugins/blocks",
"web/app/themes/sage"
]
}
@kellymears
kellymears / application.php
Last active November 17, 2019 16:12
Trellis/Bedrock/Sentry versioned deployments
<?php
/**
* composer require sentry/sentry-sdk
*/
use Sentry;
Env::init();
// Bedrock application config...
import { RichText } from '@wordpress/block-editor'
import { MediaPlaceholder, URLInput } from '@wordpress/editor'
const edit = ({ attributes, setAttributes, isSelected }) => {
const {
postLargeHeading,
postLargeDescription,
postLargeLinkUrl,
postLargeImage,
postSmallTopHeading,