Skip to content

Instantly share code, notes, and snippets.

{# Bad: Messy and Hard to Follow #}
{% if link %}
<a href="/recipes/cookies">
{% endif %}
<span>Cookies</span>
{% if link %}
</a>
{% endif %}
{# Good: Clean & Clear #}
@chadclark
chadclark / config.php
Last active January 3, 2016 08:49
ExpressionEngine 1.x Master Config. Throwback.
<?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";
<section data-type="background" data-speed="10">
</section>
@chadclark
chadclark / Robots Environment .htaccess
Last active October 17, 2022 11:48
Robots.txt for Staging and Production. By adding these rewrite rules to your .htaccess file, robots_dev.txt will be served as robots.txt on any non-production server.
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]
@tomoyukiinoue
tomoyukiinoue / gist:4304007
Created December 16, 2012 07:27
Install Python and Django for Mac OS X 10.8
# 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