Skip to content

Instantly share code, notes, and snippets.

Craig Wayne craigiswayne

Block or report user

Report or block craigiswayne

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Animated-Clouds.markdown
View Vertical-Aignment.markdown
View Drag And Drop Example .markdown

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.

View Pure CSS Chalkboard.markdown
View which_php.sh
php -i | grep /php.ini;
@craigiswayne
craigiswayne / reset_admin_user.sh
Last active Oct 31, 2018
Reset WP Admin User
View reset_admin_user.sh
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";
View image-upload-preview.markdown

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 Jun 5, 2017
Manage your json file data via a grunt task
View init.sh
##
# 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 Jun 6, 2017
WordPress Starter Content and Theme Support
View functions.php
<?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}}',
You can’t perform that action at this time.