This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InboxProductOrderView extends Backbone.View | |
tagName: "div" | |
className: "list_view_item inbox_item" | |
template: _.template($('#inbox-product-order').html()) | |
events: | |
'click': 'show_inbox_product_order' | |
render: -> | |
$(@el).html @template(@model.toJSON()) | |
@ | |
show_inbox_product_order: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "ScheduleMailer" do | |
before(:each) do | |
debugger | |
1==1 | |
#@schedule = Factory(:schedule, :schedule_on => Date.today) | |
end | |
# schedule publishing email tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/eisenhorn/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/eisenhorn/.rvm/gems/ree-1.8.7-2011.03@pss/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide --port 63027 -- /Users/eisenhorn/.rvm/gems/ree-1.8.7-2011.03@pss/bin/rspec /Users/eisenhorn/Projects/mtt/mtt/spec/controllers/schedule_mailer_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example "ScheduleMailer schedule publishing should render successfully" | |
Testing started at 19:16 ... | |
Fast Debugger (ruby-debug-ide 0.4.17.beta8, ruby-debug-base 0.10.5.jb2) listens on 127.0.0.1:63027 | |
No DRb server is running. Running in local process instead ... | |
DEPRECATION WARNING: RAILS_DEFAULT_LOGGER is deprecated. Please use ::Rails.logger. (called from /Users/eisenhorn/Projects/mtt/mtt/config/environment.rb:5) | |
/Users/eisenhorn/.rvm/gems/ree-1.8.7-2011.03@pss/gems/actionpack-3.0.3/lib/action_dispatch/http/mime_type.rb:98 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WebMailViewer < Sinatra::Base | |
helpers do | |
include Rack::Utils | |
def path_prefix | |
request.env['SCRIPT_NAME'] | |
end | |
def url_path(*path_parts) | |
[ path_prefix, path_parts ].join("/").squeeze('/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name .cafedigital.ru; | |
root /var/www/cafedigital/public_html; | |
index index.php index.html; | |
location / { | |
index index.php; | |
if (!-e $request_filename) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/resque.rb | |
class Authentication | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
# accessing our AR-model | |
user = env['warden'].authenticate!(:database_authenticatable, :rememberable, :scope => :user) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryGirl.define do | |
factory :domain do | |
name { Faker::Internet.domain_name } | |
type { Domain::ALLOWED_TYPES.sample } | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Projects/mtt/mtt git:(gera-dev) (ree-1.8.7-2011.03@rails3)» cat ~/.zshrc | |
export LC_ALL=en_US.UTF-8 | |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. |