This is a simple technique which should work on ALL hosts to allow ExpressionEngine to handle URLs without index.php in them. Hopefully EllisLab will add this as a built-in option soon.
IJR
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flexbox test</title> | |
<style> | |
@media screen and (min-width: 30em) { | |
body { | |
width:100%; | |
display: -webkit-box; | |
display: -moz-box; |
# stolen from http://github.com/cschneid/irclogger/blob/master/lib/partials.rb | |
# and made a lot more robust by me | |
# this implementation uses erb by default. if you want to use any other template mechanism | |
# then replace `erb` on line 13 and line 17 with `haml` or whatever | |
module Sinatra::Partials | |
def partial(template, *args) | |
template_array = template.to_s.split('/') | |
template = template_array[0..-2].join('/') + "/_#{template_array[-1]}" | |
options = args.last.is_a?(Hash) ? args.pop : {} | |
options.merge!(:layout => false) |
{!-- | |
1. THE CHANNEL AND FIELD NAMES NEED TO BE CHECKED FOR ACCURACY | |
2. THE DYNAMIC LINK PATHS NEED TO BE CHECKED FOR ACCURACY | |
--} | |
{exp:rss:feed channel="news"} | |
<?xml version="1.0" encoding="{encoding}"?> | |
<rss version="2.0" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" |
function betaApp(){ | |
var app = this; | |
this.init = function(){ | |
app.injectYepnope('https://raw.github.com/cnkt/eksi-beta/master/ui/js/yepnope.js'); | |
}; | |
this.injectYepnope = function(url) { | |
var gp = document.createElement( 'script' ); | |
gp.type = 'text/javascript'; | |
gp.async = true; | |
gp.src = url; |
set :deploy_to, "/var/www/default" | |
set :branch, 'master' | |
#Remote DB info | |
set :dbuser, "" | |
set :dbname, "" | |
set :dbhost, "" | |
set :dbpass, "" |
Google updated their Analytics code from their former Urchin script (urchin.js) to their own Google Analytics (gs.js) that now allows to track:
var $dateTime = new DateTime(); | |
$dateTime->setTimezone(new DateTimeZone('America/New_york')); | |
$dateTime->setTimestamp(time()); | |
$isDst = (bool)$dateTime->format('I') ? "y" : "n"; | |
$conf['daylight_savings'] = $isDst; |
git log -n1 | cut -c6-12 | pbcopy |
sass/ | |
|- _config.scss | |
|- site.scss | |
|- site--ie8.scss | |
\- modules/ | |
\- _widget.scss | |