WORKING DRAFT
Canvas/composer JSON structure
Each composer item in a composer/canvas is made up of a type a value array which contains fragments that can have their own properties and decorators.
The following document outlines the existing array behaviour in composers and how they could be tightly converted into the new format.
| javascript:(function(){ var style = document.createElement(%27style%27), styleContent = document.createTextNode(%27* { cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJBJREFUeNrs2dEKgDAIhWEN3/+VLYtBF12MppHwDxY0uvg4DJpORcSl0bB4uPcwq+oFHu8/956pbtJsAAYMGDBgwIABA044t3pMEgb8VU2XsWdn1o/aUUn4bchPBWNFYWvVidxbCFGmr7YULBs1YDPfsYcXEi9ryvDjAAwYMGDAgAED7nK8bHG7qNLs6nYXYAAheh5j8Qw5fwAAAABJRU5ErkJggg==) 22 22, auto !important}%27); style.appendChild(styleContent ); var caput = document.getElementsByTagName(%27head%27); caput[0].appendChild(style); })(); |
| # | |
| ## Setup | |
| GitHub token | |
| Repo name | |
| Path for image upload | |
| Path for markdown upload | |
| Choose image |
| # Takes a file CSV file called "data.csv" and outputs each row as a YAML file named after first column. | |
| # Data in the first row of the CSV is assumed to be the column heading. | |
| # Original work borrowed from: https://github.com/hfionte/csv_to_yaml | |
| # Import the python library for parsing CSV files. | |
| import csv | |
| from datetime import datetime | |
| # Open our data file in read-mode. | |
| csvfile = open('data.csv', 'r') |
| import codecs | |
| from datetime import datetime | |
| import json | |
| import os | |
| import posixpath | |
| import re | |
| import shutil | |
| import sys | |
| # This script will import your instagram photos to your static site. It should work for most, assuming you customize the POST_TEMPLATE to match what your site uses. |
| <select name="time-hours"> | |
| <option value="1">01</option> | |
| <option value="2">02</option> | |
| <option value="3">03</option> | |
| <option value="4">04</option> | |
| <option value="5">05</option> | |
| <option value="6">06</option> | |
| <option value="7">07</option> | |
| <option value="8">08</option> | |
| <option value="9">09</option> |
| <?php | |
| /* Register custom post types on the 'init' hook. */ | |
| add_action( 'init', 'my_register_post_types' ); | |
| /** | |
| * Registers post types needed by the plugin. | |
| * | |
| * @since 0.1.0 | |
| * @access public |
| { | |
| "icons":{ | |
| "e597":{ | |
| "name":"activity" | |
| }, | |
| "e089":{ | |
| "name":"address-book" | |
| }, | |
| "e092":{ | |
| "name":"adjust" |
| # Make a copy of sprites with a name that has no uniqueness of the hash. | |
| on_sprite_saved do |filename| | |
| if File.exists?(filename) | |
| FileUtils.cp filename, filename.gsub(%r{-s[a-z0-9]{10}\.png$}, '.png') | |
| # Note: Compass outputs both with and without random hash images. | |
| # To not keep the one with hash, add: (Thanks to RaphaelDDL for this) | |
| FileUtils.rm_rf(filename) | |
| end | |
| end | |