This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.
Save the Default.sublime-theme file into packages/user
<dict> | |
<key>name</key> | |
<string>Invalid - Illegal</string> | |
<key>scope</key> | |
<string>invalid.illegal</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#333333</string> | |
<key>fontStyle</key> |
{ | |
// calculates indentation automatically when pressing enter | |
"auto_indent": true, | |
// sets the colors used within the text area (default) | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
// useful to block endings and closing tags | |
"draw_indent_guides": true, |
# Run this file with `RAILS_ENV=production rackup -p 3000 -s thin` | |
# Be sure to have rails and thin installed. | |
require "rubygems" | |
require "rails" | |
# Let's load only action controller. If you want | |
# to use active record, just require it as well. | |
require "action_controller/railtie" | |
class MyApp < Rails::Application |
# Here is the parameters hash sent into the controller | |
params = { zombie_id: 2, id: 1 } |
#switch default editor for pry to sublime text | |
Pry.config.editor = "sublime" | |
#format prompt to be <Rails version>@<ruby version>(<object>)> | |
Pry.config.prompt = proc do |obj, level, _| | |
prompt = "\e[1;30m" | |
prompt << "#{Rails.version} @ " if defined?(Rails) | |
prompt << "#{RUBY_VERSION}" | |
"#{prompt} (#{obj})>\e[0m" | |
end |
# == Schema Information | |
# | |
# Table name: posts | |
# | |
# id :integer not null, primary key | |
# title :string(255) | |
# content :text | |
# user_id :integer | |
# slug :string(255) | |
# created_at :datetime |
after_initialize :init_many_to_many_counters | |
def init_many_to_many_counters | |
setup_many_to_many_counts(:categories, :tags) | |
end |
@import compass/reset | |
body | |
font: 62.5%/1 Helvetica, Arial, Sans-Serif | |
h1,h2,h3,strong | |
font-weight: bold | |
h1 | |
font-size: 3em |
// based on the original cleverButtons by Olivier Lacan & Andrew Smith (http://clevercode.net) | |
// I tweaked it work for simple panels | |
// modified by Adam Rensel | |
//edge can be: glow, stark, 3d, 3dLight | |
//border can be: solid, twoTone | |
=cleverPanel($radius : 5px, $textcolor : white, $from : #aaa, $to : #666, $edge : "3dLight", $border : "solid") | |
// adjustable settings for padding |