Last active
October 1, 2015 19:02
-
-
Save wircho/83453d4cc4eaacea422b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"mapping":{"actionLink":null,"bannerImage":null,"bannerTitle":null,"bannerCaption":null,"profileImage":null,"profileCaption":null},"title":"Colors","type":"stream","template":"Temp_1","endpoint":"https://www.reddit.com/hot.json","createdAt":"2015-10-01T18:41:14.900Z","source":"meta {\n title = \"Color Samples\"\n}\n\nload {\n card in\n\n let info = [\n [\"name\":\"Red\", \"color\":\"red\", \"rgb-values\":[231,76,60]],\n [\"name\":\"Green\", \"color\":\"green\", \"rgb-values\":[112,173,75]],\n [\"name\":\"Blue\", \"color\":\"blue\", \"rgb-values\":[41,128,185]]\n ]\n\n return info.loop {\n item in\n\n return [\n [ // First template of each slide\n \"banner\":[\n \"color\":item[\"color\"]\n ]\n ],\n [ // Second template of each slide\n \"description\":[\n \"title\":item[\"name\"],\n \"body\":\"RGB: (\" + \",\".join(item[\"rgb-values\"]) + \")\"\n ]\n ],\n [ // Third template of each slide\n \"footer\":[\n \"caption\":(\"Sample Text in \" + item[\"name\"]).bold.color(item[\"color\"])\n ]\n ]\n ]\n }\n}","hasEditedSource":true} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment