Skip to content

Instantly share code, notes, and snippets.

@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:
@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 / 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_';
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
@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

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
@gaearon
gaearon / modern_js.md
Last active April 18, 2024 15:01
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@ericelliott
ericelliott / .gitignore
Created November 15, 2016 19:51
Sample Node project .gitignore
node_modules
build
npm-debug.log
.env
.DS_Store
@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(); ?>