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" class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1"><![endif]--> | |
<title>Title</title> | |
<meta name="robots" content="index, follow"> | |
<meta name="description" content="Description."> |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Don't allow users to view robots.txt file | |
# RewriteCond %{REQUEST_URI} !^/robots\.txt$ | |
# Force add 'www' to URIs without 'www' (permanent redirect) | |
# RewriteCond %{HTTP_HOST} ^yourdomainname\.com$ [NC] | |
# RewriteRule ^(.*)$ http://www.yourdomainname.com/$1 [L,R=301] |
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
<link rel="stylesheet" media="all and (orientation: portrait)" href="/portrait.css"> | |
<link rel="stylesheet" media="all and (orientation: landscape)” href="/landscape.css"> | |
[option 1 - tested and working] | |
<link rel="stylesheet" media="only screen and (device-width: 768px) and (orientation: portrait)" href="/ipad-portrait.css"> | |
<link rel="stylesheet" media="only screen and (device-width: 768px) and (orientation: landscape)" href="/ipad-landscape.css"> | |
[option 2] | |
<link rel="stylesheet" media="only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: portrait)" href="/ipad-portrait.css"> | |
<link rel="stylesheet" media="only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: landscape)" href="/ipad-landscape.css"> |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| ExpressionEngine Config Items | |
|-------------------------------------------------------------------------- | |
| | |
*/ | |
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://"; |
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
.col { | |
margin-bottom: -1000px; | |
padding-bottom: 1000px; | |
} | |
For when you want your containers to have the same height. If you are unfamiliar with this technique, I recommend reading Ed Eliot’s article: http://www.ejeliot.com/blog/61 |
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
#!/bin/bash | |
# File: exp_permissions.sh | |
# Description: Sets permssions on a ExpressionEngine 2 install | |
# | |
# Copyright 2010 George Ornbo (Shape Shed) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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 | |
// Setup the environment | |
if (!defined('EE_ENV')) { | |
define('EE_SERVER_NAME', $_SERVER['SERVER_NAME']); | |
if ( strstr( EE_SERVER_NAME, '.local' ) ) define('EE_ENV', 'local'); | |
elseif ( strstr( EE_SERVER_NAME, '.dev' ) ) define('EE_ENV', 'dev'); | |
elseif ( strstr( EE_SERVER_NAME, '.stage' ) ) define('EE_ENV', 'stage'); | |
else define('EE_ENV', 'production'); | |
} |
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
<!-- copy this to YOUR_THEME.tmTheme--> | |
<dict> | |
<key>name</key> | |
<string>diff: deleted</string> | |
<key>scope</key> | |
<string>markup.deleted</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#EAE3CA</string> |
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
diff --git a/Contents/Info.plist b/Contents/Info.plist | |
index 30088e8..1fba4c8 100644 | |
--- a/Contents/Info.plist | |
+++ b/Contents/Info.plist | |
@@ -284,6 +284,9 @@ | |
<key>public.filename-extension</key> | |
<array> | |
<string>css</string> | |
+ <string>less</string> | |
+ <string>scss</string> |
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
<figure class="quote"> | |
<blockquote>It is the unofficial force—the Baker Street irregulars.</blockquote> | |
</figure> |
OlderNewer