Skip to content

Instantly share code, notes, and snippets.

View mkitt's full-sized avatar
Milk runs.

Matthew Kitt mkitt

Milk runs.
View GitHub Profile
mkitt /
Last active October 4, 2017 16:15
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 July 2, 2013 18:59
Bindable using an instance cache and uuids in datasets
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 April 8, 2024 23:07
Helvetica Neue Font Stacks for 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 June 29, 2012 16:14
Deprecated Vim plugins
mkitt /
Created February 13, 2011 03:24
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