This file contains hidden or 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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or 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
jQuery(document).ready(function($){ | |
// Let's get the position of our sharebar container(where we want it) | |
// Cache these DOM traversals | |
var container = $('.content'); | |
var containerOffset = container.offset().top; | |
var containerLeft = container.offset().left; | |
var containerBottom = containerOffset + container.height(); | |
var sharebar = $('.viralshare'); | |
var sharebarHeight = 432; |
This file contains hidden or 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
<!-- Delicious --> | |
<a title="Share this on del.icio.us" href="http://del.icio.us/post?url=http://yourwebsite.com&title=Your Ttitle"> Boorkmak on del.icio.us </a> | |
<!-- Digg --> | |
<a title="Submit to Digg" href="http://digg.com/submit?url=http%3A//yourwebsite.com/&title=Your%3Website%Name"> Post on Digg </a> | |
<!-- Reddit --> | |
<a title="Share this on Reddit" href="http://reddit.com/submit?url=http://iamkawsar.com&title=Your Website Name">Post on on Reddit</a> | |
<!-- Facebook --> |
This file contains hidden or 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:title" content="The Rock" /> | |
<meta property="og:type" content="video.movie" /> | |
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" /> | |
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" /> | |
<!-- | |
og:audio - A URL to an audio file to accompany this object. | |
og:description - A one to two sentence description of your object. | |
og:determiner - The word that appears before this object's title in a sentence. An enum of (a, an, the, "", auto). If auto is chosen, the consumer of your data should chose between "a" or "an". Default is "" (blank). | |
og:locale - The locale these tags are marked up in. Of the format language_TERRITORY. Default is en_US. |
This file contains hidden or 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
div.column { | |
/* The background image must be 800px wide */ | |
max-width: 800px; | |
} | |
figure.fluidratio { | |
padding-top: 10%; /* slope */ | |
height: 120px; /* start height */ | |
background-image: url(http://voormedia.com/examples/amsterdam.jpg); |
This file contains hidden or 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
// http://ca.php.net/imap | |
$mb = imap_open("{host:port/imap}","username", "password" ); | |
$messageCount = imap_num_msg($mb); | |
for( $MID = 1; $MID <= $messageCount; $MID++ ) | |
{ | |
$EmailHeaders = imap_headerinfo( $mb, $MID ); | |
$Body = imap_fetchbody( $mb, $MID, 1 ); | |
doSomething( $EmailHeaders, $Body ); |
This file contains hidden or 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.myPlugin = function() { | |
// Do your awesome plugin stuff here | |
}; | |
})( jQuery ); |
This file contains hidden or 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
CREATE TABLE tutorials_tbl( | |
id INT NOT NULL AUTO_INCREMENT, | |
title VARCHAR(100) NOT NULL, | |
slug VARCHAR(40) NOT NULL, | |
content VARCHAR(2000) NOT NULL, | |
PRIMARY KEY ( id ) | |
) AUTO_INCREMENT=15110; |
This file contains hidden or 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
CREATE TABLE results( | |
id INT NOT NULL AUTO_INCREMENT, | |
1sttitle VARCHAR(100) NOT NULL, | |
2ndtitle VARCHAR(100) NOT NULL, | |
3rdtitle VARCHAR(100) NOT NULL, | |
1stmsg VARCHAR(300) NOT NULL, | |
2ndmsg VARCHAR(300) NOT NULL, | |
3rdmsg VARCHAR(300) NOT NULL, | |
1stscore VARCHAR(100) NOT NULL, | |
2ndscore VARCHAR(100) NOT NULL, |