Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
<br />
<b>Notice</b>: Undefined property: stdClass::$data in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contribute/contribute.php</b> on line <b>424</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contribute/contribute.php</b> on line <b>424</b><br />
<br />
<b>Notice</b>: Undefined property: stdClass::$data in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contribute/contribute.php</b> on line <b>425</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contribute/contribute.php</b> on line <b>425</b><br />
<br />
<b>Notice</b>: Undefined property: stdClass::$data in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contrib
@whyisjake
whyisjake / error.txt
Created April 2, 2014 16:12
Again, this is with a user that is created using the standard login procedure. Not with FB/Twitter.
<br />
<b>Notice</b>: Undefined property: stdClass::$data in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contribute/contribute.php</b> on line <b>424</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contribute/contribute.php</b> on line <b>424</b><br />
<br />
<b>Notice</b>: Undefined property: stdClass::$data in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contribute/contribute.php</b> on line <b>425</b><br />
<br />
<b>Notice</b>: Trying to get property of non-object in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contribute/contribute.php</b> on line <b>425</b><br />
<br />
<b>Notice</b>: Undefined property: stdClass::$data in <b>/nfs/c03/h04/mnt/166492/domains/staging.makezine.com/html/wp-content/themes/makeblog/includes/contrib
@whyisjake
whyisjake / blink.h
Last active August 29, 2015 13:58
Blink an Arduino
(function( $, wp ) {
var $document = $( document );
wp.media.view.Menu.prototype.ready = function() {
this.unset( 'video-playlist' );
};
// These views may break with back-compat shortcodes on WordPress.com
// Disable them until we sort things out.
wp.mce.views.unregister( 'audio' );
$(document).ready(function() {
function isValidEmail( $email ) {
return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email);
};
$('.CLASS-OF-SUBMIT-BUTTON').click( function() {
var email = $('#tyvyh-tyvyh').val();
if ( isValidEmail( email ) ) {
$(".fancybox2").fancybox({
width: 640,
@whyisjake
whyisjake / DbKJr.markdown
Created June 17, 2014 00:10
A Pen by Jake Spurlock.
<?php
// The date to start on.
$current_year = date( 'Y' );
// This doesn't matter that much, but it will
// make the page load a little faster if you
// know exactly what the range is.
$ending_year = 2000;
@whyisjake
whyisjake / phpconsole.sublime-snippet
Created September 22, 2014 20:57
Little Sublime Text snippet to take a PHP object, and output as JSON, and then console.log() it.
<snippet>
<content><![CDATA[<script>console.log(<?php echo json_encode( ${1:\$this} ); ?>);</script>]]></content>
<tabTrigger>phpconsole</tabTrigger>
<scope>source.php</scope>
<description>PHP Console</description>
</snippet>
<?php
/**
* Number Tower
*/
$rows = array(
array( 21, 24, 0, 9, 0, 0, 2 ),
array( 45, 30, 0, 11, 9, 0 ),
array( 75, 0, 0, 20, 0 ),
array( 0, 0, 0, 38 ),
<?php
// This is the ideal post, based on the current pointer.
$ideal = $query->posts[ $index ]->ID;
if ( in_array( $ideal, $used ) ) {
// If it is in the array, update the index to the next.
// What this doesn't have, is a way to go 2+...
$index++
}
// Grab the post.