Skip to content

Instantly share code, notes, and snippets.

Milk runs.

Matthew Kitt mkitt

Milk runs.
View GitHub Profile
mkitt /
Last active Oct 4, 2017
Structure and naming patterns

Structure and naming patterns

A working document for more consistent naming patterns and document structures.

Landmark blocks

The structural [landmark roles][landmarks] make up the outer containers within a site. These are the building blocks and SHOULD contain attributes describing the [role][roles] they serve.

  • [banner][banner]: site-oriented content may include the logo, primary navigation and site-specific search, ONE of these per page
mkitt / bindable-dataset.js
Created Jul 2, 2013
Bindable using an instance cache and uuids in datasets
View bindable-dataset.js
window.Bindable = (function() {
'use strict';
function Bindable(context, dataKey) {
this.uuid = 0
this.cache = {}
this.context = context || document
this.dataKey = dataKey || 'data-bindable'
this.instanceKey = this.dataKey.replace(/data-/g, '') + 'Id'
mkitt / helvetica_neue_font_stack.sass
Last active Feb 28, 2016
Helvetica Neue Font Stacks for SASS.
View helvetica_neue_font_stack.sass
@function helvetica_neue_stack($weight, $variant)
@return "Helvetica Neue CE #{$weight} #{$variant}", "Helvetica Neue LT #{$weight} #{$variant}", "Helvetica Neue #{$weight} #{$variant}", "HelveticaNeue-#{$variant}", "Helvetica Neue #{$variant}", "Helvetica Neue", "Helvetica", "Arial", sans-serif
// Fonts
$sans-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", "Helvetica", "Arial", "Lucida Grande", sans-serif
$sans-neue-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", "Arial", sans-serif
$sans-light-family: helvetica_neue_stack("45", "Light")
$sans-thin-family: helvetica_neue_stack("35", "Thin")
$sans-ultra-family: helvetica_neue_stack("25", "Ultra Light")
mkitt /
Created Jun 29, 2012
Deprecated Vim plugins
mkitt /
Created Feb 13, 2011
AppleScript for use with Automator which allows opening files within Terminal Vim

What It Does

This AppleScript used in conjunction with Automator will allow you to set preferences for opening files via mouse click in the Terminal version of Vim. It will also allow you to fire up the Terminal version of Vim through Spotlight within the home directory.

Installation Notes

  • Fire up Automator
  • Choose "Application" from the workflow templates
  • Under the "Actions" panel select "Utilities"
  • To the right of "Utilities" drag an instance of "Run AppleScript" to the editor window