Skip to content

Instantly share code, notes, and snippets.

View anthonyjb's full-sized avatar

Anthony Blackshaw anthonyjb

View GitHub Profile
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00 # First class dates
vs
{
"owner": {
"name": "Tom Preston-Werner",
"dob": "1979-05-27T07:32:00-08:00"
# Prerequisites:
#
# - Using Python 3.5+
# - Install manhattan-chains (`pip install manhattan-chains`)
#
from manhattan.chains import Chain
# Define link factories
# Prerequisites:
#
# - Using Python 3.5+
# - Install manhattan-chains (`pip install manhattan-chains`)
#
from manhattan.chains import Chain
# Define link factories
# Prerequisites:
#
# - Using Python 3.5+
# - Install manhattan-chains (`pip install manhattan-chains`)
#
from manhattan.chains import Chain
# Define the chains
# Prerequisites:
#
# - Using Python 3.5+
# - Install manhattan-chains (`pip install manhattan-chains`)
#
from manhattan.chains import Chain
# Define the chains
# Prerequisites:
#
# - Using Python 3.5+
# - Install manhattan-chains (`pip install manhattan-chains`)
#
from manhattan.chains import Chain
# Define the chains
@anthonyjb
anthonyjb / h3tool.coffee
Created June 9, 2016 08:40
Custom H3 Tool
class ContentTools.Tools.H3 extends ContentTools.Tools.Heading
# Convert the current text block to a H3
# Store the tool on the tool shelf
ContentTools.ToolShelf.stow(@, 'h3')
# Configure the tool
@label = 'Heading 3'
@icon = 'subheading' # (or add a custom icon)
@font-face {
font-family: 'icon';
src: url('http://cdn.jsdelivr.net/contenttools/1.2.4/icons.woff');
font-weight: normal;
font-style: normal;
}
.ce-element--drop:before {
background-image: url('http://cdn.jsdelivr.net/contenttools/1.2.4/images/drop-vert-above.svg');
}