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( $ ){ | |
$.fn.resize = function(max_size) | |
{ | |
return this.each(function() | |
{ | |
//Wait until the image is loaded | |
$(this).load(function() | |
{ | |
//Create a container div | |
var div_container = $("<div></div>"); |
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 | |
require("postmark.php"); | |
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address"); | |
$result = $postmark->to("reciver@example.com") | |
->subject("Email Subject") | |
->plain_message("This is a plain text message.") | |
->attachment('File.pdf', $file_as_string, 'application/pdf') |
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 | |
$rss = file_get_contents( "http://feeds.feedburner.com/aliasmx?format=xml" ); | |
$xml = new SimpleXMLElement( $rss ); | |
if( $count = 8 ): | |
?> |
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 IE]> | |
According to the conditional comment this is IE<br /> | |
<![endif]--> | |
<!--[if IE 6]> | |
According to the conditional comment this is IE 6<br /> | |
<![endif]--> | |
<!--[if IE 7]> | |
According to the conditional comment this is IE 7<br /> |
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 initialize() { | |
var myOptions = { | |
zoom: 11, | |
center: new google.maps.LatLng(37.392391,-122.059822), | |
disableDefaultUI: true, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
} | |
var map = new google.maps.Map(document.getElementById("map_canvas"), | |
myOptions); |
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
{exp:channel:categories show_empty="yes" channel="blog" style="linear"} | |
<li>{if last_segment == 'fr'}<a href="{path='blog/category'}/fr/">{category_name}</a>{if:else}<a href="{path='blog/category'}">{category_name}</a>{/if}</li> | |
{/exp:channel:categories} |
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 = "http://www.youtube.com/watch?v=oHg5SJYRHA0&lololo"; | |
$video_id = explode("?v=", $link); // For videos like http://www.youtube.com/watch?v=... | |
if (empty($video_id[1])) | |
$video_id = explode("/v/", $link); // For videos like http://www.youtube.com/watch/v/.. | |
$video_id = explode("&", $video_id[1]); // Deleting any other params | |
$video_id = $video_id[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
<style type="text/css"> | |
/******************************************************** | |
INTEREST LIST | |
********************************************************/ | |
#interestLeft { | |
width: 490px; | |
float: left; | |
padding-left: 30px; |
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
content = "<h1>HTML CONTENT HERE</h1>"; | |
$("#contentDiv").html(content); |
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
User-agent: * | |
Disallow: / | |
Disallow: /directory/ | |
Disallow: /directory/file.html |
OlderNewer