Skip to content

Instantly share code, notes, and snippets.

View gg-spyda's full-sized avatar
:electron:
Zen State

Gjvon Graves gg-spyda

:electron:
Zen State
  • Houston Texas
View GitHub Profile
@maddisondesigns
maddisondesigns / functions.php
Last active January 1, 2019 11:07
Remove Yoast SEO nag after update
<?php
/*
* Remove the annoying Yoast SEO nag for all Admin Users. Tested with v3.4.2
*/
class ahRemoveYoastNag_Remove_Yoast_SEO_Nag {
private $yoastPluginFile;
public function __construct() {
$this->yoastPluginFile = "wordpress-seo/wp-seo.php";
register_activation_hook( $this->yoastPluginFile, array( $this, 'ryn_remove_yoast_nag_on_activation' ) );
@mikaelbr
mikaelbr / destructuring.js
Last active April 25, 2024 13:21
Complete collection of JavaScript destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@jbreitenbucher
jbreitenbucher / gist:1996832
Created March 7, 2012 22:46
WordPress: Plugin Header Boilerplate
<?php
error_reporting(E_ALL);
/*
Plugin Name: __pluginname__
Plugin URI: http://orthogonalcreations.com
Description: __description__
Author: Jon Breitenbucher
Author URI: http://orthogonalcreations.com
Version: __version__