Skip to content

Instantly share code, notes, and snippets.

@iso100
iso100 / .gitignore
Last active August 29, 2015 13:56
Better Statamic .gitignore rules
# Statamic files #
######################
_cache/*
!_cache/index.html
_logs/*
!_logs/index.html
@iso100
iso100 / sql update
Created March 10, 2014 15:03
Update field based on match on fields in temp table
UPDATE exp_pw_landingpages epw
SET epw.mailcode =
(SELECT mailcode FROM temp WHERE website = epw.website and subdir = epw.subdir)
@iso100
iso100 / implicit_cookie_code.txt
Last active August 29, 2015 13:57
Sample code for EU cookie law compliance
@iso100
iso100 / default.html
Created July 3, 2014 19:01
Homepage template showing a gallery item
<div class="row">
<div class="eight columns">
<h2>Photography by Andrew Mosedale</h2>
<div class="row">
<div class="eight columns">
{{ content }}
</div>
<div class="four columns">
<div class="example-image">
{{ get_content from="/gallery" }}
@iso100
iso100 / page.md.yaml
Last active August 29, 2015 14:03
yaml for gallery page
---
title: Gallery
_fieldset: gallery
_template: gallery
gallery:
-
photo: '{{ _site_root }}assets/img/dream.jpg'
caption: Dream
-
photo: '{{ _site_root }}assets/img/reborn.jpg'
@iso100
iso100 / grunt-issues.txt
Created February 13, 2015 21:46
Errors when trying to run grunt serve
~/D/w/A/d/s/p/b/r/FE-static-templates ❯❯❯ grunt serve ⏎
Loading "autoprefixer.js" tasks...ERROR
>> Error: Cannot find module 'caniuse-db/data'
Loading "sass.js" tasks...ERROR
>> Error: `libsass` bindings not found. Try reinstalling `node-sass`?
Running "serve" task
Warning: Task "autoprefixer" not found. Use --force to continue.
Aborted due to warnings.
@iso100
iso100 / VollyHeader.html
Created November 18, 2011 18:55
_header snippet
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{if segment_1}
@iso100
iso100 / ee2wpexport
Created July 27, 2012 13:45
EE to WP Export
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.0/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.0/"
>
<channel>
<title>Pitney Bowes Business Insight Blog</title>
@iso100
iso100 / pi.flickholdr.php
Created September 7, 2012 20:46
Plugin for Statamic
<?php
class Plugin_flickholdr extends Plugin {
var $meta = array(
'name' => 'flickholdr placeholder images',
'version' => '0.1',
'author' => 'Ian Pitts',
'author_url' => 'http://ianpitts.com'
);
People will still use these tags, mostly because they want to 'do the right thing' in the hope the Standards Fairy will leave small change and/or an Apple product under their pillow. But it’s just a waste of productive time that could be better spent on more important things.