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 / reset_admin_user.sh
Last active October 31, 2018 10:17
Reset WP Admin User
function wp_reset_admin_user () {
echo "#################################";
echo "Resetting the Admin User...";
email="admin@localhost.com"
username=admin;
name=$username;
admin_pass=$username;
echo "Attempting to create User with username: $username";

Image Upload Preview

Image Upload Preview gist using UIKit 3, Javascript and HTML File Input Element

A Pen by Craig Wayne on CodePen.

License.

@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}}',