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
{ | |
"id": "news", | |
"title": "LATEST NEWS", | |
"icon_url": "https://s3.amazonaws.com/s3.dashbook.co/dash_icons/news_large_icon.png", | |
"summary": "Description of news dash.", | |
"credits": "Google News", | |
"settings_type": "SELECT", | |
"settings_options": [ | |
{ | |
"key": "top", |
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
{ | |
"cities":[ | |
{ | |
"picture":"http://media-cdn.tripadvisor.com/media/photo-s/03/9b/2f/df/montreal.jpg", | |
"name":"Montreal", | |
"nickname":"The City Of Saints", | |
"province":"Quebec" | |
}, | |
{ | |
"picture":"http://images.hellobc.com/mgen/tbccw/production/TBCCWDisplay.ms?img=/getmedia/4149a8de-fc5d-4e54-b659-5282486fa973/2-200291313-001-Vancouver-skyline.jpg.aspx&tl=1&sID=1&c=public,max-age=172802,post-check=7200,pre-check=43200&bid=4_5", |
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
{ | |
"id": "city-card", | |
"title": "City", | |
"icon_url": "http://relevant.ai/city.png", | |
"summary": "Card's summary for the library.", | |
"credits": "The Web", | |
"settings_type": "NONE", | |
"_LOAD": { | |
"json_info":{ | |
"_URL":"https://gist.githubusercontent.com/wircho/d6c606350f8a6dca29ee/raw/b7872ecebfcc868ff825c88fe1c5e06d13ad618c/cities" |
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
{ | |
"id": "cities-card", | |
"title": "Cities", | |
"icon_url": "http://relevant.ai/cities.png", | |
"summary": "Card's summary for the library.", | |
"credits": "The Web", | |
"settings_type": "NONE", | |
"_LOAD": { | |
"json_info":{ | |
"_URL":"https://gist.githubusercontent.com/wircho/d6c606350f8a6dca29ee/raw/b7872ecebfcc868ff825c88fe1c5e06d13ad618c/cities" |
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
{ | |
"id": "cities-card", | |
"title": "Cities", | |
"icon_url": "http://relevant.ai/cities.png", | |
"summary": "Card's summary for the library.", | |
"credits": "The Web", | |
"settings_type": "NONE", | |
"_LOAD": { | |
"json_info":{ | |
"_URL":"https://gist.githubusercontent.com/wircho/d6c606350f8a6dca29ee/raw/b7872ecebfcc868ff825c88fe1c5e06d13ad618c/cities" |
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
{ | |
"_MAIN":{ | |
"info":{ | |
"time":{"_DATE":{"_FORMAT_OUT":"<<timestamp>>"}}, | |
"var":"This is the variable. Here you put your API call, your _URL, whatever you need to call no less than 2 seconds in between every call." | |
}, | |
"get_var":{ | |
"_FUNCTION":{ | |
"_IF":{"_MATH":[{"_DATE":{"_FORMAT_OUT":"<<timestamp>>"}},"-",{"_PATH":["info","time"]},">2"]}, | |
"_THEN":{"_REFETCH":["info"],"_RETURN":{"_PATH":["info","var"]}}, |
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
{ | |
"_LOAD":{ | |
"yql":{ | |
"_FUNCTION":{"_URL":{"_CONCAT":[ | |
"https://query.yahooapis.com/v1/public/yql?q=", | |
{"_URL_ENCODE":"{$0}"}, | |
"&format=json&diagnostics=true&callback=" | |
]}} | |
}, | |
"some_variable":{"_APPLY":{"yql":"SELECT * FROM html WHERE url='google.com'"}} |
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
{ | |
"title": "Watch Cities", | |
"icon_url": "http://relevant.ai/cities.png", | |
"summary": "Card's summary for the library.", | |
"credits": "The Web", | |
"settings_type": "NONE", | |
"_LOAD": { | |
"json_info":{ | |
"_URL":"https://gist.githubusercontent.com/wircho/d6c606350f8a6dca29ee/raw/b7872ecebfcc868ff825c88fe1c5e06d13ad618c/cities" | |
}, |
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 |
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
/* | |
* SafeMatrix.swift | |
*/ | |
// MARK: Convenience types and functions | |
public typealias MatrixDimensions = (rows:UInt,columns:UInt) | |
public typealias MatrixIndex = (i:UInt,j:UInt) | |
public func ==(lhs:MatrixDimensions,rhs:MatrixDimensions) -> Bool { | |
return lhs.rows == rhs.rows && lhs.columns == rhs.columns |
OlderNewer