Skip to content

Instantly share code, notes, and snippets.

[apigateway-request-id: d863def0-51b2-427c-907e-8b69f83936bb] [lambda-request-id: 511cc43f-0b6b-429d-9c68-5ac604b1819f] [xray-trace-id: Root=1-5ebe939e-b2170c9853592d349715bf84] ApiCache.readApiMainJson.redis - /db/search?ref=https%3A%2F%2Ftappable.prismic.io%2Fpreviews%2FXr6TlhAAACgzyX4x%3FwebsitePreviewId%3DXp7vJBIAACAAzzLQ&q=%5B%5Bat%28document.type%2C+%22menu%22%29%5D%5D&skip=0&limit=20 - 1ms
[apigateway-request-id: d863def0-51b2-427c-907e-8b69f83936bb] [lambda-request-id: 511cc43f-0b6b-429d-9c68-5ac604b1819f] [xray-trace-id: Root=1-5ebe939e-b2170c9853592d349715bf84] ApiCache.readApiMainJson.redis - /db/masks?ref=https%3A%2F%2Ftappable.prismic.io%2Fpreviews%2FXr6TlhAAACgzyX4x%3FwebsitePreviewId%3DXp7vJBIAACAAzzLQ - 1ms
[apigateway-request-id: d863def0-51b2-427c-907e-8b69f83936bb] [lambda-request-id: 511cc43f-0b6b-429d-9c68-5ac604b1819f] [xray-trace-id: Root=1-5ebe939e-b2170c9853592d349715bf84] ApiCache.readApiMainJson - /db/search?ref=https%3A%2F%2Ftappable.prismic.io%2Fpreviews%2FXr6TlhAAACgzyX4x%3Fwebsi
{
"Basic Types" : {
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "Unique Document Identifier"
}
},
"text" : {
"type" : "Text",
@srenault
srenault / allfragments.json
Created June 21, 2016 15:02 — forked from lamenath/allfragments.json
all prismic fragments document mask
{
"Basic Types" : {
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "Unique Document Identifier"
}
},
"text" : {
"type" : "Text",
prismic.withContext(req,res).then(function(err, ctx) {
ctx.api.forms('archive').ref(ctx.ref).submit(function(err, response) {
})
})
"people" : {
"type" : "Group",
"fieldset" : "People",
"config" : {
"fields" : {
"illustration" : {
"type" : "Image",
"config" : {
"constraint" : {
"height" : 1024
.people .text {
padding: 10px;
}
.people p , .people h3 {
margin: 0;
}
.people .illustration {
height: 200px;
<div class="row-centered-aired people">
<?php foreach($slice->getValue()->getArray() as $item) { ?>
<?php $illustration = $item->get('illustration'); ?>
<div class="col-4 center">
<div class="image illustration" <?= $illustration ? 'style="background-image: url('.$illustration->getView("icon")->getUrl().')"' : '' ?>></div>
@srenault
srenault / featured-items-micro.php
Created June 9, 2015 13:47
Website starter - featured-items-micro
int main(int argc, char **argv) {
google::protobuf::Arena arena;
std::ifstream in("<path>");
m::cheminot::data::Graph* graphBuf = google::protobuf::Arena::CreateMessage<m::cheminot::data::Graph>(&arena);
graphBuf->ParseFromIstream(&in);
in.close();
}
val json = Json.obj("users" -> Json.arr(Json.obj("name" -> "martin"), Json.obj("name" -> "dupont")))
val path = ((__ \ "users")(1) \ "name")
__.json.update(path.json.put(JsString("toto"))).reads(json)