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
<h1> | |
<a href="http://stackoverflow.com"> | |
<img src="logo.png" alt="Stack Overflow" title="Click to return to Stack Overflow homepage" /> | |
</a> | |
</h1> |
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
.subtle-transition { | |
-webkit-transition: all 0.3s ease-out; /* Chrome 1-25, Safari 3.2+ */ | |
-moz-transition: all 0.3s ease-out; /* Firefox 4-15 */ | |
-o-transition: all 0.3s ease-out; /* Opera 10.50–12.00 */ | |
transition: all 0.3s ease-out; | |
} |
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
<meta property="og:url" content="<?php the_permalink() ?>"/> | |
<meta property="og:title" content="<?php single_post_title(''); ?>" /> | |
<meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" /> | |
<meta property="og:type" content="article" /> | |
<meta property="og:image" content="<?php // Get the thumbnail image with size of 1200 x 630 | |
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(1200,630), false, '' ); echo $src[0]; ?>" /> // Set |
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
<table class="table"> | |
<thead> | |
<tr> | |
<th>#</th> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Username</th> | |
</tr> | |
</thead> | |
<tbody> |
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
javascript:$('link').remove();$('head').append($('<link rel="stylesheet" type="text/css" href="//www.schalkburger.za.net/other.css"/>'));void 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
$('a[rel^="external"],a[rel$="external"]').attr({target:"_blank",title:"Opens in a new tab or window"}).append(''); |
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
$("p:has(img)"); |
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 | |
$lines = file('http://google.com/'); | |
foreach ($lines as $line_num => $line) { | |
echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n"; | |
}?> |
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 | |
$url = "http://api.hostip.info/get_html.php"; | |
$contents = file_get_contents($url); | |
$values = preg_split("[\n|\r]",$contents); | |
$count = count($values); | |
for($i = 0; $i < $count; $i++) { | |
if($i != $count-1) { | |
echo $values[$i] . "\n"; | |
} | |
} |