Skip to content

Instantly share code, notes, and snippets.

View bezierer's full-sized avatar
☎️
Designing the fastest interviews on the planet https://www.qualifi.hr

Cameron Campbell bezierer

☎️
Designing the fastest interviews on the planet https://www.qualifi.hr
View GitHub Profile
{
"user": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "save only",
"linters": {
"php": {
'use strict';
//* Store paths
var PATHS = {
js: './js/',
sass: './sass/',
build: {
js: './js/min/',
css: './'
}
/**
* Modified version of the_post_navigation, does the same, but uses different classes and adds arrows.
*
* @param array $args Arguments array. Lets you set the text for the buttons.
* @return string
*/
function wds_comeback_get_the_posts_navigation( $args = array() ) {
global $wp_query;
/**
* Gets the markup for a featured grid.
*
* @param array $args Arguments for the grid.
* @return string Markup for the feature grid.
*/
function wds_comeback_get_featured_grid( $args = array() ) {
// bail early if function doesn't exist.
if ( ! function_exists( 'wds_comeback_feature_grids' ) ) {
return '';
echo '<pre>';
print_r( get_the_ID() );
echo '</pre>';
echo '<pre>';
print_r(get_field( 'blog_hero' ));
echo '</pre>';
die;
@bezierer
bezierer / php-code-inspection.md
Last active October 28, 2017 16:40
How to install PHP code inspection tools using homebrew-php and how to integrate with JetBrain's IntelliJ or PhpStorm

Inspection Tools with homebrew-php and WordPress Coding Standards

Prerequisites

  • Homebrew is installed

Step 1: Installing homebrew-php

  1. brew tap homebrew/dupes
  2. brew tap josegonzalez/homebrew-php
  3. brew install PHP70 (or other version of your choice)
.header-button {
margin: 30px auto;
display: block;
position: relative;
color: #fff;
text-decoration: none;
font-size: 19px;
background-color: #6dbd93;
text-align: center;
padding: 30px;
{
// 3rd Party Extensions Settings.
"phpcs.standard": "WebDevStudios",
// Theme setup.
"workbench.colorTheme": "Shades of Purple",
"workbench.iconTheme": "eq-material-theme-icons",
"workbench.settings.editor": "json",
// Fonts.
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,