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
[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" |
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
# Prerequisites: | |
# | |
# - Using Python 3.5+ | |
# - Install manhattan-chains (`pip install manhattan-chains`) | |
# | |
from manhattan.chains import Chain | |
# Define link factories |
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
# Prerequisites: | |
# | |
# - Using Python 3.5+ | |
# - Install manhattan-chains (`pip install manhattan-chains`) | |
# | |
from manhattan.chains import Chain | |
# Define link factories |
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
# Prerequisites: | |
# | |
# - Using Python 3.5+ | |
# - Install manhattan-chains (`pip install manhattan-chains`) | |
# | |
from manhattan.chains import Chain | |
# Define the chains |
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
# Prerequisites: | |
# | |
# - Using Python 3.5+ | |
# - Install manhattan-chains (`pip install manhattan-chains`) | |
# | |
from manhattan.chains import Chain | |
# Define the chains |
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
# Prerequisites: | |
# | |
# - Using Python 3.5+ | |
# - Install manhattan-chains (`pip install manhattan-chains`) | |
# | |
from manhattan.chains import Chain | |
# Define the chains |
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
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) |
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
@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'); | |
} |