Skip to content

Instantly share code, notes, and snippets.

View ghalimi's full-sized avatar

Ismael Ghalimi ghalimi

View GitHub Profile
{
"padding": "strict",
"data": [
{
"name": "table",
"values": [
{
"horizontal": "US",
"height": 6,
"height_details": "hardware"
var data = [
{"country": "US", "product": "hardware", "amount": 6},
{"country": "US", "product": "software", "amount": 10},
{"country": "UK", "product": "hardware", "amount": 11},
{"country": "UK", "product": "software", "amount": 2},
{"country": "JP", "product": "hardware", "amount": 4},
{"country": "JP", "product": "software", "amount": 8}
];
var meta = {
[
{
"name": "Bar",
"type": "cartesian",
"circularization": "Pie",
"priority": "3",
"engine": "vega",
"axes": [
{
"name": "Horizontal",
{
"data": [
{
"identifier": "combination",
"name": "Combination Dimension",
"description": "Set combination dimension",
"operation": "SET",
"inputs": [
{
"key": "datatype",
{
"stc_schema": {
"title": "Controller Schema",
"type": "object",
"properties": {
"stc_model": {
"stc_datatype": "stc_json",
"stc_name": "Model",
"stc_description": "Model of the page.",
"stc_required": false,
{
"copyright": "© Sutoiku, Inc. 2013",
"stc_type": "stc_levels",
"stc_summaries": "stc_numerical",
"stc_id_expression": "MOMENTUTC(group, 'YYYY-MM-DD[T]HH:mm:ss+00:00')",
"stc_add_expression": "MOMENTUTCADD(start, period, number)",
"stc_diff_expression": "MOMENTUTCDIFF(start, end, period)",
"stc_format_expression": "MOMENTUTC(group)",
"stc_casting_expression": "MOMENT(value, 'X')",
"stc_inverse_expression": "MOMENT(value * 1000, 'YYYY-MM-DD[T]HH:mm:ss+00:00')",
{
"stc_schema": {
"copyright": "© Sutoiku, Inc. 2013",
"title": "JSON Schema Schema",
"type": "object",
"properties": {
"copyright": {
"stc_datatype": "stc_string",
"stc_name": "Copyright",
"stc_description": "Copyright of the JSON Schema.",
@ghalimi
ghalimi / twitter.json
Created September 14, 2013 23:37
Twitter Bindings
[
{
"copyright": "© Sutoiku, Inc. 2013",
"stc_name": "Twitter Get Status By Id",
"stc_identifier": "stc_twitter_get_status_by_id",
"stc_source_api": {
"stc_name": "GET statuses/show/: id",
"stc_website": "https: //dev.twitter.com/docs/api/1.1/get/statuses/show/%3Aid",
"stc_immutable": false,
"stc_refreshed": true,
{
"stc_schema": {
"title": "Family Definition Schema",
"type": "object",
"properties": {
"stc_type": {
"stc_datatype": "stc_category",
"stc_name": "Type",
"stc_description": "Type of the family.",
"stc_required": true,
{
"copyright": "© Sutoiku, Inc. 2013",
"stc_schema": {
"title": "Chart Definition Schema",
"type": "object",
"properties": {
"dimensions": {
"type": "array",
"stc_name": "Dimensions",
"stc_description": "Dimensions of the chart.",