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
<Files *.pdf> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</Files> |
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
foreach ( $_POST as $key=>$value ) { | |
$$key = $value; } |
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
<section id="item" itemscope itemtype="http://schema.org/Product"> | |
<h1 itemprop="name">Product Name</h1> | |
<img class="item-image" itemprop="image" src="http://placehold.it/100x75&text=placeholder"> | |
<div class="item-details"> | |
<span class="item-brand" itemprop="brand">Brand Name</span> | |
</div><!-- /.item-details --> | |
<div class="item-offer" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> |
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
<label for="nameFirst">First Name</label> | |
<input type="text" id="nameFirst"> |
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 slideElementByID(event, element){ | |
if (event.preventDefault) { | |
event.preventDefault(); | |
} else { | |
event.returnValue = false; | |
} | |
var elementID = $(element).attr("data-action-id"); | |
if( $("#" + elementID).is(':visible') ) { | |
$("#" + elementID).slideUp(); | |
} else { |
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
background-image: url("@{base-url}/images/bg.png"); |
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
<!-- Fav and touch icons --> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="_assets/ico/apple-touch-icon-144.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="_assets/ico/apple-touch-icon-114.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="_assets/ico/apple-touch-icon-72.png"> | |
<link rel="apple-touch-icon-precomposed" href="_assets/ico/apple-touch-icon-57.png"> | |
<link rel="shortcut icon" href="_assets/ico/favicon.png"> |
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
Pref Pane: http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/ | |
Source http://machiine.com/2013/how-to-install-apache-and-php-on-a-mac-with-osx-10-8-mamp-part-1/ | |
sudo nano /etc/apache2/httpd.conf | |
sudo nano /etc/apache2/users/username.conf | |
<Directory "/Users/username/Sites" > | |
Options FollowSymLinks Indexes MultiViews | |
AllowOverride All |
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 | |
// SERVER NAME | |
$serverName = $_SERVER['SERVER_NAME']; | |
$productionServer = ""; | |
// SET DATABASE LOCAL/PRODUCTION | |
if ( $serverName == "localhost") { | |
$mysqli_host = "127.0.0.1"; | |
$mysqli_user = "root"; |
OlderNewer