Skip to content

Instantly share code, notes, and snippets.

@nathaningram
nathaningram / wp-config.php
Created September 22, 2020 16:29
Sample wp-config.php File for Page Builder Summit
<?php
/* MySQL Settings */
define( 'DB_NAME', 'database_name_here' );
define( 'DB_USER', 'username_here' );
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_HOST', 'localhost' );
define( 'DB_CHARSET', 'utf8mb4' );
$table_prefix = 'wp_';
@grantambrose
grantambrose / 1functions.php
Created October 25, 2016 02:14
Create a custom 404 page using Beaver Builder
<?php get_header(); ?>
<?php
// replace 404-error-page below with the slug of your own 404 Beaver Builder Template
echo do_shortcode('[fl_builder_insert_layout slug="404-error-page"]'); ?>
<?php get_footer(); ?>
@nathaningram
nathaningram / style.css
Last active December 16, 2020 19:19
Deconstruction: Brilliantly.net (Part One) - CSS
.fl-node-5f9300e0babe9 .fl-photo-img,
.fl-node-5f9300e0babe9 .fl-photo-content {
max-width: 300px !important;
height: auto;
}
li.gfield {
margin-bottom: 60px !important;
}
@nathaningram
nathaningram / cta-button.html
Created December 16, 2020 18:11
Call to Action Button Settings
Button Text:
[wpbb-if post:pods_display field=page_cta]
[wpbb post:pods_display field='page_cta']
[wpbb-else] Schedule a Discovery Call
[/wpbb-if]
Button Link:
@tessak22
tessak22 / functions.php
Created March 12, 2019 12:06
Hero Gutenberg Block using Advanced Custom Fields 5.8 Pro
/**
* Register hero block
*/
add_action('acf/init', 'hero');
function hero() {
// check function exists
if( function_exists('acf_register_block') ) {
// register a hero block
alexcvzz.vscode-sqlite
andys8.jest-snippets
apollographql.vscode-apollo
austincummings.razor-plus
bobsparadox.seti-black
BriteSnow.vscode-toggle-quotes
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
CoenraadS.bracket-pair-colorizer
dbaeumer.vscode-eslint
@ericelliott
ericelliott / .gitignore
Created November 15, 2016 19:51
Sample Node project .gitignore
node_modules
build
npm-debug.log
.env
.DS_Store
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active November 12, 2023 23:00
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>

Dev Setup

  1. Homebrew/terminal/bash
  2. OSX Productivity - Window Management/Quick Launcher/Hyperswitch
  3. OSX Settings - Dock/Finder
  4. Web Browser - Extensions - AdBlock, Privacy Badger, OneTab, JSONViewer, Stylus, Vue Devtools, React Devtools
  5. Node.js - nvm
  6. Code Editor - vs code
  7. Code Editor Extensions
  8. Break timer and Flux
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install iterm2
# update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts
brew install bash # latest version of bash
# set brew bash as default shell
brew install fortune
brew install cowsay
brew install git