Skip to content

Instantly share code, notes, and snippets.

View lamenath's full-sized avatar
:octocat:
Focusing

Nathanael Lamelliere lamenath

:octocat:
Focusing
View GitHub Profile
@lamenath
lamenath / bikeprice
Created February 7, 2014 14:34
visualizing second hand bikes average prices on leboncoin realtime
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Tataviiz">
<meta name="keywords" content="dataviiz">
<meta name="author" content="Nathanael Lamelliere">
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="dist/css/bootstrap.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
@lamenath
lamenath / page.json
Last active August 29, 2015 14:22
adding a label to a Content Slice in the document mask
{
"Content" : {
"body" : {
"fieldset" : "Dynamic page zone...",
"type" : "Slices",
"config" : {
"labels" : {
"featured-items" : [ {
"name" : "full",
"display" : "Full featured"
@lamenath
lamenath / Slices.json
Last active August 29, 2015 14:22
Configuring a single Slice choice
{
"Main" : {
"title" : {
"fieldset" : "Title...",
"type" : "StructuredText",
"config" : {
"placeholder" : "Type the document's title here",
"single" : "heading1"
}
}
@lamenath
lamenath / sample.json
Created June 8, 2015 15:30
A document with only one tab, with a single Title input for the writer
{
"Main" : {
"title" : {
"fieldset" : "Title...",
"type" : "StructuredText",
"config" : {
"placeholder" : "Type the document's title here",
"single" : "heading1"
}
}
@lamenath
lamenath / responsive-blog-post.json
Last active August 29, 2015 14:22
blog post with responsive images
{
"Content" : {
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "UID"
}
},
"title" : {
"type" : "StructuredText",
@lamenath
lamenath / page-sample.json
Last active August 29, 2015 14:23
Page Document Mask, with a "Featured items" Content Slice single choice
{
"Content" : {
"body" : {
"fieldset" : "Dynamic page zone...",
"type" : "Slices",
"config" : {
"labels" : {
"featured-items" : [ {
"name" : "mini",
"display" : "Mini"
@lamenath
lamenath / slices-page.json
Last active September 17, 2015 20:31
example for a prismic.io page mask using slices type
{
"Content" : {
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading1",
"placeholder" : "Page title"
}
},
"uid" : {
@lamenath
lamenath / social-cards.json
Last active August 29, 2015 14:24
Social Cards Tab for prismic.io Document Mask
"Social Cards" : {
"social_cards_enabled" : {
"type" : "Select",
"fieldset" : "Social Sharing",
"config" : {
"placeholder" : "Disable",
"label" : "Enable Social Buttons",
"options" : [ "Enable" ]
}
},
@lamenath
lamenath / allfragments.json
Last active November 29, 2016 18:33
all prismic fragments document mask
{
"Basic Types" : {
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "Unique Document Identifier"
}
},
"text" : {
"type" : "Text",
@lamenath
lamenath / autoupdate.json
Created September 18, 2015 14:03
auto-update option for date and timestamp fragments
{
"Main" : {
"date" : {
"type" : "Date",
"fieldset" : "Auto-update date",
"config" : {
"label" : "Auto-update date",
"update" : "now"
}
},