Skip to content

Instantly share code, notes, and snippets.

@opattison
opattison / key_with_multiple_lines_preserved.yaml
Last active February 9, 2022 22:39
How to preserve multiple YAML lines with newlines (for example, to pass through a Markdown filter in Jekyll)
# How to preserve multiple YAML lines with newlines (for example, to pass through a Markdown filter in Jekyll)
# via: http://stackoverflow.com/questions/3790454/in-yaml-how-do-i-break-a-string-over-multiple-lines
key: |+
Hello.
World.
# Output if processed with Markdown:
# '<p>hello</p><p>world</p>'
@opattison
opattison / atom-git-color-override.less
Last active March 30, 2016 02:53
Custom git override styles for Atom tree view and tabs
// include in user `styles.less` “your stylesheet”
@color-status-modified: hsl(22, 50%, 44%);
@color-status-added: hsl(144, 50%, 35%);
@color-status-ignored: hsl(200, 3%, 55%);
// Custom git override styles for Atom tree view
.tree-view {
.status-modified,
.list-tree li.list-nested-item.status-modified > .list-item {