Skip to content

Instantly share code, notes, and snippets.

View craigiswayne's full-sized avatar

Craig Wayne craigiswayne

View GitHub Profile
@craigiswayne
craigiswayne / Animated-Clouds.markdown
Last active August 29, 2015 14:20
Animated Clouds
@craigiswayne
craigiswayne / Drag And Drop Example .markdown
Last active November 4, 2015 15:07
Drag And Drop Example

Drag And Drop Example

Quick demo to show Drag and Drop states using: html css javascript (js) jquery

A Pen by Craig Wayne on CodePen.

@craigiswayne
craigiswayne / Pure CSS Chalkboard.markdown
Last active November 5, 2015 07:30
Pure CSS Chalkboard
php -i | grep /php.ini;
@craigiswayne
craigiswayne / init.sh
Created June 5, 2017 22:41
Manage your json file data via a grunt task
##
# Work in Progress
##
npm init
npm install grunt --save-dev
npm install grunt-update-json@0.2.2 --save-dev
npm install matchdep@1.0.1 --save-dev
touch Gruntfile.js
touch manifest.json
@craigiswayne
craigiswayne / functions.php
Created June 6, 2017 17:06
WordPress Starter Content and Theme Support
<?php
/**
* @see https://roots.io/using-and-customizing-wordpress-starter-content/
*/
add_action( 'after_setup_theme', function () {
add_theme_support( 'starter-content', [
'options' => [
'show_on_front' => 'page',
'page_on_front' => '{{home}}',
@craigiswayne
craigiswayne / CW_Comments_Recaptcha.php
Created June 8, 2017 10:49
WordPress Comments Recaptcha
<?php
/**
* Class CWP_Comments_Recaptcha
* Allows you to add recaptcha to WordPress Comments
*/
class CW_Comments_Recaptcha {
const js_url = 'https://www.google.com/recaptcha/api.js';
@craigiswayne
craigiswayne / wp-plugin-audit.js
Created June 8, 2017 10:58
WordPress Plugin Audit Snippet (Markdown)
var $ = jQuery;
var plugin_rows = $("table.wp-list-table.plugins tbody tr").not(".plugin-update-tr");
var plugins = [];
var markdown = "";
if( $(plugin_rows).length > 0 ){
markdown = "| Name | Version | Status |";
markdown += "\n";
markdown += "| --- | --- | --- |";