Skip to content

Instantly share code, notes, and snippets.

@martenc
martenc / richsnippet.liquid
Created April 29, 2018 22:21 — forked from joe-dempsey/richsnippet.liquid
Shopify product richsnippet - structured data markup for Shopify product templates
{% assign current_variant = product.selected_or_first_available_variant %}
<div id="richsnippet">
<div itemscope itemtype="http://schema.org/Product">
<meta itemprop="url" content="{{ shop.url }}{{ product.url }}">
<meta itemprop="image" content="{{ product.featured_image.src | img_url: 'grande' }}">
<meta itemprop="name" content="{{ product.title | escape }}">
<meta itemprop="description" content="{{ product.description | strip_html }}">
{% if product.vendor %}<meta itemprop="brand" content="{{ product.vendor }}">{% endif %}
@martenc
martenc / fiddle.html
Created March 19, 2018 23:27 — forked from anonymous/fiddle.html
Solution - Token Authentication Using the Nuxeo JS Client (source: https://jsfiddle.net/martenc/3fq0acfw/)
<body>
<h1>
Solution - Token Authentication Using the Nuxeo JS Client
</h1>
<h2>
Your Goal
</h2>
@martenc
martenc / s3-invalidation.js
Created July 13, 2017 02:30 — forked from supinf/s3-invalidation.js
AWS Lambda script:: CloudFront Invalidations which are triggered by s3 events.
console.log('Loading event');
var Q = require('q');
var aws = require('aws-sdk');
var cloudfront = new aws.CloudFront();
exports.handler = function (event, context) {
//_log('Received event: ', event);
var bucket = event.Records[0].s3.bucket.name;

Showcase idea (hover the iPhone)

Wanted to get some interactivity in my portfolio-images, this is one of the ideas that I had and something that I will use for the site. (Only works in webkit at the moment)

A Pen by Patrik Hjelm on CodePen.

License.