Skip to content

Instantly share code, notes, and snippets.

Avatar

Robbie Mathieu rob-mathieu

View GitHub Profile
View mongodb_cheat_sheet.md

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active Jan 20, 2021
Vanilla JavaScript Quick Reference / Cheatsheet
View vanilla-js-cheatsheet.md
@lots0logs
lots0logs / child-theme-functions.php
Created Feb 16, 2016
WordPress :: Divi Builder :: Search Module :: Custom Post Types
View child-theme-functions.php
<?php
function my_remove_default_et_pb_custom_search() {
remove_action( 'pre_get_posts', 'et_pb_custom_search' );
add_action( 'pre_get_posts', 'my_et_pb_custom_search' );
}
add_action( 'wp_loaded', 'my_remove_default_et_pb_custom_search' );
function my_et_pb_custom_search( $query = false ) {
if ( is_admin() || ! is_a( $query, 'WP_Query' ) || ! $query->is_search ) {
@PurpleBooth
PurpleBooth / README-Template.md
Last active Jan 21, 2021
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@jo-snips
jo-snips / events-conditional-wrappers.php
Last active Dec 30, 2020
The Events Calendar: Basic Conditional Wrappers
View events-conditional-wrappers.php
<?php
/*-----------------------------------------------------------------------------------*/
/* Conditional Logic to Detect Various Event Related Views/Pages
/*-----------------------------------------------------------------------------------*/
if( tribe_is_month() && !is_tax() ) { // Month View Page
echo 'were on the month view page';
} elseif( tribe_is_month() && is_tax() ) { // Month View Category Page