Skip to content

Instantly share code, notes, and snippets.

@sheeran
sheeran / sublime-prefs
Created May 2, 2013 23:47
My Sublime Text 2 User Preferences.
{
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"flatland_square_tabs": true,
"font_face": "Menlo",
"font_size": 14.0,
"highlight_line": true,
"highlight_modified_tabs": true,
@sheeran
sheeran / tags2.rb
Created January 31, 2013 04:23
"Single File" version of cats2tags.rb. Takes a single Octopress/Jekyll markdown file as an argument. Reads "categories" from YAML and applies those as OpenMeta tags. Run with a Hazel rule.
#!/usr/bin/ruby
# By Neal Sheeran www.nealsheeran.com
#
# Single version of cats2tags.rb
# Receives a file name (Octopress markdown file)
# as an argument and processes the YAML frontmatter.
# The categories are written to the file as OpenMeta tags.
#
# Hazel is used to execute this script on a folder of markdown files:
@sheeran
sheeran / cats2tags.rb
Last active December 11, 2015 10:08
Read the categories of a directory of Jekyll/Octopress markdown posts and write those categories as OpenMeta tags
#!/usr/bin/ruby
# By Neal Sheeran www.nealsheeran.com
#
# Script to read the categories of all Jekyll/Octopress markdown
# posts in a directory and write those categories to the file
# as OpenMeta tags.
#
# Currently only allows for single-word tags: 'web design'
# will be written as two separate tags - 'web' and 'design'
@sheeran
sheeran / gist:3046554
Created July 4, 2012 10:18
HTML: Lorem
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam sit amet elit vitae arcu interdum ullamcorper. Nullam ultrices, nisi quis scelerisque convallis, augue neque tempor enim, et mattis justo nibh eu elit. Quisque ultrices gravida pede. Mauris accumsan vulputate tellus. Phasellus condimentum bibendum dolor. Mauris sed ipsum.</p>