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
{# Bad: Messy and Hard to Follow #} | |
{% if link %} | |
<a href="/recipes/cookies"> | |
{% endif %} | |
<span>Cookies</span> | |
{% if link %} | |
</a> | |
{% endif %} | |
{# Good: Clean & Clear #} |
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 | |
if ( ! defined('EXT')){ | |
exit('Invalid file request'); | |
} | |
$conf['app_version'] = ""; // EE Version Number -- Fill this in before updating so it knows where to begin | |
$conf['license_number'] = ""; | |
$conf['debug'] = "1"; | |
$conf['install_lock'] = "1"; |
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 data-type="background" data-speed="10"> | |
</section> |
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
RewriteEngine On | |
# Robots.txt for Staging and Production -- change productiondomain.com to the actual url of your production site | |
RewriteCond %{HTTP_HOST} !productiondomain.com$ [NC] | |
RewriteRule ^robots.txt robots_dev.txt [L] |
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
# Install Python 2.7.3 via Homebrew | |
$ brew install python | |
$ echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bash_profile | |
$ source ~/.bash_profile | |
$ python --version | |
Python 2.7.3 | |
# Install Django 1.4.3 by easy_install | |
$ sudo easy_install django | |
$ sudo easy_install virtualenv |