Skip to content

Instantly share code, notes, and snippets.

@jessotron
jessotron / recipe-schema-markup
Created September 25, 2015 02:02
Sample Recipe Schema Markup
<div itemscope itemtype="http://schema.org/Recipe">
<link itemprop="url" href="http://allrecipes.com/recipe/12682/apple-pie-by-grandma-ople/" />
<meta itemprop="mainEntityOfPage" content="True" />
<img src="http://images.media-allrecipes.com/userphotos/720x405/736203.jpg" alt="Apple Pie by Grandma Ople" title="Apple Pie by Grandma Ople" itemprop="image" />
<h1 itemprop="name">Apple Pie by Grandma Ople</h1>
<div itemprop="description">"This was my grandmother's apple pie recipe. I have never seen another one quite like it. It will always be my favorite and has won me several first place prizes in local competitions. I hope it becomes one of your favorites as well!"</div>
Prep Time: <time itemprop="prepTime" datetime="PT30M">30 min</time>
Cook Time: <time itemprop="cookTime" datetime="PT1H">1 hour</time>
Total Time: <time itemprop="totalTime" datetime="PT1H30M">1 hour 30 min</time>
@chadclark
chadclark / gulpfile.js
Last active July 25, 2016 09:18
Gulp Imagemin SVGO + Sketch.app Happiness
Being frustrated for the 87th time after SVGO (via gulp-imagemin) rendered my SVG files exported from Sketch.app useless, I tested to figure out which SVGO plugins to disable.
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/