Skip to content

Instantly share code, notes, and snippets.

%h4= @wikiview.wiki_title
%p= @wikiview.wiki_content
%h5 Add collabos
= form_for(@wikiview.wiki) do
%table
%tr
%th Email
%th Add collabo

This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.

Dark sublime text 2 sidebar

Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.

class Shape
attr_accessor :color
def initialize(color="red")
@color = color
end
end
class Circle < Shape
@beaugaines
beaugaines / gist:7226384
Last active December 26, 2015 22:49
Sublime keymap for Linux
[
{ "keys": ["ctrl+shift+."], "command": "erb" },
{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" },
# jump to beginning of line
{ "keys": ["alt+9"], "command": "move_to", "args": {"to": "bol", "extend": false}},
# jump to end of line
{ "keys": ["alt+0"], "command": "move_to", "args": {"to": "eol", "extend": false}},
{ "keys": ["alt+u"], "command": "insert", "args": {"characters": "_"} },
{ "keys": ["alt+="], "command": "insert", "args": {"characters": "=>"} },
class String
def camel_case
parts = self.split
parts.each { |p| p.capitalize! }
parts[0].downcase!
parts.join
end
def camel_case!
parts = self.split
gem 'pg'
group :development do
gem 'ruby-debug'
end
gem 'rake', '~> 0.8.7'
gem 'devise'
gem 'oa-oauth', :require => 'omniauth/oauth'
gem 'omniauth'
gem 'haml'
gem 'dynamic_form'