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"> | |
@media only screen and (max-device-width: 480px) { | |
/* mobile-specific CSS styles go here - max-devise-width property only works on apple, Amazon Kindle Fire, Android 2.2+, Microsoft Windows Phone 7.5+ mail clients */ | |
table[class=contenttable] { | |
width: 320px !important; | |
} | |
p { | |
background-color: #000; | |
} | |
} |
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-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; height: 0; overflow: hidden; | |
} | |
.video-container iframe, | |
.video-container object, | |
.video-container embed { | |
position: absolute; |
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
// http://wp.tutsplus.com/tutorials/plugins/two-ways-to-develop-wordpress-plugins-object-oriented-progamming/ | |
class My_Widget extends WP_Widget { | |
public function __construct() { | |
// widget actual processes | |
} | |
public function form( $instance ) { | |
// outputs the options form on admin |
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
<html> | |
<head> | |
<title>Dragable Demo</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> | |
<script src="ui.js"></script> | |
<style> | |
.item { | |
height: 180px; |
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
public function getGoogleAnalytics () | |
{ | |
$googleid = Config::getConfig()->getPreference('googleAnalyticsCode'); | |
$basketWidget = $this->getWidget('basket'); | |
$clientData = $this->getClientDataForOrderReview($clientID); | |
$orderData = $this->getOrderData($basketWidget,$clientData); | |
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 toggle(id) { | |
var element = document.getElementById(id); | |
if(element.style.display == "block") | |
hide(id); | |
else | |
show(id); | |
} |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> | |
<link rel="stylesheet" href="../css/ui.css"> | |
</head> | |
<body> | |
<div id="tempload"></div> | |
<button id="btntest" name="btntest">test</button> |
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
MYPATH=$1 | |
find "$MYPATH" -name *.jpg -exec basename {} \; > /tmp/patterns | |
find "$MYPATH" -name *.jpeg -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.png -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.gif -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.css -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.js -exec basename {} \; >> /tmp/patterns | |
find "$MYPATH" -name *.php -exec basename {} \; >> /tmp/patterns |
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 charset="utf-8"> | |
<!-- The page title that is displayed in the top of the browser --> | |
<title>The HTML5 Herald</title> | |
<!-- Meta content describes your page and is indexed by search engines such as Google --> | |
<meta name="description" content="The HTML5 BASE template"> |