autocmd BufWritePre * :%s/\s\+$//e
(add-hook 'before-save-hook 'delete-trailing-whitespace)
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
| <title>untitled</title> | |
| <style type="text/css"> |
| color ir_black " my favorite stock colorscheme is desert | |
| set autochdir | |
| syntax on | |
| set hlsearch | |
| set wildmenu | |
| set wildmode=longest:full | |
| set incsearch | |
| filetype plugin on | |
| set ruler | |
| set laststatus=2 |
| module Ahoy | |
| def self.included(base) | |
| base.public_instance_methods.select {|m| m.to_s =~ /ar/ }.each do |method_name| | |
| base.class_eval("alias #{method_name.gsub("ar", "arrr")} #{method_name}") | |
| end | |
| end | |
| end |
| # Match subdomain for a Sinatra route | |
| # cz.application.local:4567 => 200 0K | |
| # en.application.local:4567 => 404 Not Found | |
| # In your /etc/hosts: | |
| # 127.0.0.1 cz.application.local | |
| # 127.0.0.1 en.application.local | |
| require 'rubygems' |
| @import __base.sass | |
| @import compass | |
| $zen_first_sidebar_width: $zen_blueprint_left_units * $blueprint_grid_outer_width | |
| $zen_second_sidebar_width: $zen_blueprint_right_units * $blueprint_grid_outer_width | |
| $zen_content_width: $zen_blueprint_content_units * $blueprint_grid_outer_width - $blueprint_grid_margin | |
| $zen_gutter: $blueprint_grid_margin | |
| $zen_navbar_height: 40px | |
| $zen_page_width: $zen_first_sidebar_width + $zen_content_width + $zen_second_sidebar_width |
| class Post < ActiveRecord::Base | |
| has_many :authors | |
| attr_accessor :post_authors | |
| memoize :post_authors | |
| def post_authors | |
| process_post_authors |
| function select_towns(towns) { | |
| var options = $('#search_town_data option'); | |
| towns.split(',').each(function(town_id_string) { | |
| options.has('[value='+ town_id_string +']').attr('selected', 'selected'); | |
| }); | |
| } |
| #!/usr/bin/env ruby | |
| require 'highline/system_extensions' | |
| include HighLine::SystemExtensions | |
| module Standup | |
| module Control | |
| extend self | |
| def play |