Forked from Secret Sam's Pen Jotfe.
A Pen by Jake Spurlock on CodePen.
<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 |
<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 |
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Explaining what the code will do. Anything within /* *\/ or after // is ignored, and is a comment to yourself on what the piece of code will do (a great reminder after creating tens or hundreds of sketches). | |
*/ |
(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, |
Forked from Secret Sam's Pen Jotfe.
A Pen by Jake Spurlock on CodePen.
<?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; |
<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. |