Skip to content

Instantly share code, notes, and snippets.


Greg Rickaby gregrickaby

View GitHub Profile
gregrickaby / button.stories.tsx
Last active Sep 7, 2020
React Component and Storybook Template - 2020
View button.stories.tsx
import React from 'react'
import Button from './Button'
* The following is a story.
* It follows the "Component Story Format" (CSF), an open standard
* based on ES6 modules which is portable beyond Storybook. This is
* version 2 of that standard and uses args.
gregrickaby / settings.json
Created Apr 14, 2020
vscode settings to share with team
View settings.json
"breadcrumbs.enabled": true,
"explorer.openEditors.visible": 0,
"window.title": "${dirty} ${activeEditorMedium}${separator}${rootName}",
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 13,
"editor.fontLigatures": true,
"editor.renderWhitespace": "all",
"editor.multiCursorModifier": "ctrlCmd",
"editor.minimap.renderCharacters": false,
gregrickaby / composer.json
Created Jul 12, 2019
WDS New Project Composer Setup
View composer.json
"name": "foo-project/wordpress-wp-content",
"description": "Plugins and Theme to power the Foo Project website built atop WordPress.",
"type": "project",
"require": {
"webdevstudios/sso": "^2.0",
"webdevstudios/advanced-custom-fields-pro": "^5.8",
"yoast/wordpress-seo-premium": "^11.6",
"wpackagist-plugin/stream": "^3.3",
"webdevstudios/wp-migrate-db-pro": "^1.9",
gregrickaby / disable-beaver-builder-global-padding-margin.php
Last active Oct 2, 2019
Disable Beaver Builder global padding and margin
View disable-beaver-builder-global-padding-margin.php
* Set Beaver Builder defaults
* @param {object} $defaults The default settings.
* @param {object} $form)_type The module settings.
* @return $defaults
function grd_set_bb_defaults( $defaults, $form_type ) {
gregrickaby /
Last active Sep 15, 2017
JavaScript: How to create new div dynamically, change it, move it, modify it in every way possible?
View wp-query-ref.php
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
$args = array(
View get-related-posts-by-tag.php
View gist:5d3bc24e60d272bb74255cfdb7828f41

Moving from jQuery


// jQuery
$(document).ready(function() {
  // code