This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stringGuess(aString) { | |
// 'default' operator | |
var checkString = aString || "aString is falsy value."; | |
// 'guard' operator | |
if (checkString && checkString.length) | |
return checkString; | |
return "aString is not a string"; | |
} | |
var man = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(4 >= 6 || "grass" != "green") && !(12 * 2 == 144 && true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> | |
<title>JavaScript 101</title> | |
<script type="text/javascript"> | |
function load() | |
{ | |
var total = 2 + 2; | |
alert(total + ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); | |
?>/favicon.ico" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video width="427" height="240" controls="controls"> | |
<!-- Adjust width and height to match your video --> | |
<source src="video.ogg" type="video/ogg" /> | |
<!-- Firefox 3.5 will play this --> | |
</video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package WordPress | |
* @subpackage Your_Theme | |
*/ | |
/* | |
Template Name: Home | |
*/ | |
get_header(); ?> | |
<div id="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Customized function for wp_trim_excerpt | |
*/ | |
function customized_trim_excerpt($text) { | |
$raw_excerpt = $text; | |
if ( '' == $text ) { | |
$text = get_the_content(''); | |
$text = strip_shortcodes( $text ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package WordPress | |
* @subpackage Your_Theme | |
*/ | |
get_header(); ?> | |
<div id="container"> | |
<div id="content"> | |
<?php if (have_posts()) : ?> | |
<?php while (have_posts()) : ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( function_exists('register_sidebar') ) | |
{ | |
// Primary Sidebar | |
register_sidebar(array( | |
'name' => 'Primary Sidebar', | |
'id' => 'primary-sidebar', | |
'before_widget' => '<li id="%1$s" class="widget %2$s">', | |
'after_widget' => '</li>', | |
'before_title' => '', | |
'after_title' => '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" | |
src="http://tweetboard.com/tb.js?v=1.0&user=yourtwitterusername"></script> |