Skip to content

Instantly share code, notes, and snippets.

Michael Curry michaelcurry

Block or report user

Report or block michaelcurry

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
@michaelcurry
michaelcurry / rfc-template.md
Created Sep 29, 2016
RFC Template [Markdown]
View rfc-template.md

RFC Template

Feature Name: (fill me in with a unique identity, myawesomefeature)

Type: (feature, enhancement)

Start Date: (fill me in with today's date, YYYY-MM-DD)

Author: (your names)

View gist:2b5050a4ef3aa6d1b77d
Verifying that +kernelcurry is my openname (Bitcoin username). https://onename.com/kernelcurry
@michaelcurry
michaelcurry / gist:90cf637f0f72118d8e8a
Created Sep 24, 2014
Change WordPress URL MySQL Query
View gist:90cf637f0f72118d8e8a
SET @oldsite='http://oldsite.com';
SET @newsite='http://newsite.com';
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite);
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite);
View keybase.md

Keybase proof

I hereby claim:

  • I am michaelcurry on github.
  • I am michaelcurry (https://keybase.io/michaelcurry) on keybase.
  • I have a public key whose fingerprint is E0BC 49E5 0BA7 404D 4DB2 7246 1571 A4CD FC45 0C22

To claim this, I am signing this object:

@michaelcurry
michaelcurry / hello_dolly_oop.php
Last active Jan 3, 2017
This is an object-oriented sample Wordpress plugin. Blog Post: http://www.kernelcurry.com/blog/object-oriented-wordpress-plugin
View hello_dolly_oop.php
<?php
/**
* @package Hello_Dolly_OOP
* @version 0.1
*/
/*
Plugin Name: Hello Dolly OOP
Plugin URI: http://kernelcurry.com/blog/object-oriented-wordpress-plugin
Description: This plugin is an object oriented version of Matt Mullenweg's Hello Dolly plugin.
Version: 0.1
@michaelcurry
michaelcurry / mirrorAttack.js
Last active Dec 28, 2015
Include to mirror a web page. jQuery not required. Happy trolling.
View mirrorAttack.js
/*!
* Mirror Attack JS
* Twitter: @KernelCurry
* http://www.kernelcurry.com
* @link https://gist.github.com/michaelcurry/7576007
*
* Include to mirror a web page. jQuery not required. Happy trolling.
*
*/
@michaelcurry
michaelcurry / csv to array with key as header
Last active Dec 18, 2015
Simple CSV to array function. if Header == NULL then the first row will be the header.
View csv to array with key as header
/**
* @link https://gist.github.com/michaelcurry/5855818
*/
function csv_to_array($filename, $delimiter = ',', $header = NULL){
$array = array();
$rows = file($filename);
foreach($rows as $line) {
$tmp = str_getcsv($line, $delimiter);
if( ! $header ) {
$header = $tmp;
@michaelcurry
michaelcurry / jQuery Diagonal Grid Fill
Last active Dec 11, 2015
jQuery Diagonal Grid Fill Algorithm used to slide animations and menus. This code is NOT commented right now, but will be edited in the future.
View jQuery Diagonal Grid Fill
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<style>
body{
padding:0;
margin:0;
}
.screen{
width: 600px;
You can’t perform that action at this time.