Skip to content

Instantly share code, notes, and snippets.

Shoes.setup do
gem 'curb >= 0.8.3'
gem 'json >= 1.1.1'
end
require 'visual_objects'
Shoes.app do
background "#FFFFFF"
@veered
veered / gist:4759131
Created February 12, 2013 01:02
This is the broken .slate
# Resize Bindings
bind right:alt resize +10% +0
bind left:alt resize -10% +0
bind up:alt resize +0 -10%
bind down:alt resize +0 +10%
bind right:ctrl;alt resize -10% +0 bottom-right
bind left:ctrl;alt resize +10% +0 bottom-right
bind up:ctrl;alt resize +0 +10% bottom-right
bind down:ctrl;alt resize +0 -10% bottom-right
@veered
veered / gist:4759121
Created February 12, 2013 01:01
This is the working config file
config defaultToCurrentScreen true
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsSpreadPadding 40
config windowHintsSpreadSearchWidth 80
config windowHintsSpreadSearchHeight 80
config switchIconPadding 2
config switchBackgroundColor 50;53;58;0.7
config switchSelectedPadding 4
@veered
veered / process_structured.rb
Created July 13, 2012 01:04
New structured data parser
def process_structured(event)
line = event.fields["tail"].first
properties, message = line.split("] ", 2)
properties.slice!(0)
properties.split("][").each do |group|
items = group.split
name = items.slice!(0).split("@", 2).first