Skip to content

Instantly share code, notes, and snippets.

Philip Meissner pmeissner

Block or report user

Report or block pmeissner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6699912
doctype
//if lt IE 7
html.no-js.lt-ie9.lt-ie8.lt-ie7
//if IE 7
html.no-js.lt-ie9.lt-ie8
//if IE 8
html.no-js.lt-ie9
//[if gt IE 8]><!
html.no-js
//<![endif]
@pmeissner
pmeissner / products.csv
Created Sep 3, 2013
Product CSV file sample
View products.csv
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 4.
name~sku~manufacturer~image~price~dimension~description
Argus QC-2185 Quick Click 5MP Digital Camera~QC-2185~Argus~/a/r/argus-qc-2185-quick-click-5mp-digital-camera-2.jpg~37.49~2.75 inches x 1.5 inches~Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Maecenas sed diam eget risus varius blandit sit amet non magna. Maecenas sed diam eget risus varius blandit sit amet non magna.
Olympus Stylus 750 7.1MP Digital Camera~750~Olympus~/o/l/olympus-stylus-750-7-1mp-digital-camera-2.jpg~161.94~3.8 x 2.1 x 1 inches~Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur blandit tempus porttitor. Maecenas sed diam eget risus varius blandit sit amet non magna. Maecenas sed diam eget risus varius blandit sit amet non magna.
19"
@pmeissner
pmeissner / gist:6328273
Created Aug 24, 2013
statamic opengraph
View gist:6328273
{{ if segment_2 == slug }}
<meta property="og:title" content="{{ title }}">
<meta property="og:type" content="article">
<meta property="og:description" content="{{ content|striptags|truncate:200 }}">
<meta property="og:url" content="{{ permalink }}">
<meta property="og:image" content="{{ _site_url }}{{ transform src='{{ featured_image }}' width='1200' height='600' action='smart' }}">
<meta property="og:site_name" content="{{ _site_name }}">
<meta property="fb:admins" content="722169618">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@pmeissner">
View index.jade
block vars
- var page_name='Press'
- var slug='press'
- var section='about'
- var layout='left-sidebar'
extends ../../layout
mixin articles
article
@pmeissner
pmeissner / layout.jade
Created Aug 15, 2013
Wireframe layout template file.
View layout.jade
- var site_url = 'https://s3.amazonaws.com/creative_loupe/website/demos/wireframing'
- var site_name = 'Wireframing Inc'
- var layout = ''
- var section = ''
- var sidebar_content = ''
block vars
doctype
//if IE 8
@pmeissner
pmeissner / gist:6149980
Created Aug 4, 2013
blog template in jade
View gist:6149980
{{ if segment_2 }}
h2.blog-title: a(href="../blog", title="blog") In the Loupe
article.blog-article(itemscope itemtype="http://schema.org/Article")
header.blog-article__header
h1.blog-article__title(itemprop="name") {{ title|widont }}
.blog-article__featured-image
@pmeissner
pmeissner / gist:5912094
Created Jul 2, 2013
statamic gitignore
View gist:5912094
.sass-cache
_logs/*
_cache/*
_config/users/*
_content/*
assets/*
# Compiled source #
###################
*.com
@pmeissner
pmeissner / default.jade
Last active Dec 17, 2015
Jade Template for Statamic
View default.jade
doctype
//if lt IE 7
html.no-js.lt-ie9.lt-ie8.lt-ie7
//if IE 7
html.no-js.lt-ie9.lt-ie8
//if IE 8
html.no-js.lt-ie9
//[if gt IE 8]><!
html.no-js
//<![endif]
@pmeissner
pmeissner / pi.math.php
Last active Jul 29, 2019
Stupid simple math plugin. {{ math:calc formula="1 + 1" }}
View pi.math.php
<?php
class Plugin_Math extends Plugin {
var $meta = array(
'name' => 'Math',
'version' => '0.1',
'author' => 'Philip Meissner of Creative Loupe',
'author_url' => 'http://lou.pe'
);
@pmeissner
pmeissner / gist:4166200
Created Nov 29, 2012
statamic semi-relationship
View gist:4166200
<h2><i>by</i> {{ categories_url_list }}</h2>
{{ entries:listing folder="about/staff" limit="1" conditions="title:{ categories_list }"}}
<a href="#" class="pull-left">
{{ image src="{{ staff_image }}" dim="150x300" }}
<img src="{{ image_url }}" width={{ width }} height={{ height }} alt="{{ title }}" class="thumbnail" />
{{ /image }}
</a>
<div class="media-body">
{{ content }}
<div><a class="email" href="mailto:{{ staff_email }}">{{ staff_email }}</a></div>
You can’t perform that action at this time.