Updated for Rails 4.0.0+
-
Set up the
bower
gem. -
Follow the Bower instructions and list your dependencies in your
bower.json
, e.g.// bower.json
{
require 'rblineprof' | |
module Rblineprof | |
module ConsoleHelpers | |
include Rblineprof::Helpers | |
def lineprof_block(options = {}, &block) | |
profile = lineprof(rblineprof_profiler_regex(options[:lineprofiler])) do | |
ret = yield | |
end |
<!-- Include Mixpanel and init before this. --> | |
<!-- Place at the bottom of your layout (ex: app/views/layouts/application.html.erb) --> | |
<% if content_for :mixpanel %> | |
<%= javascript_tag(yield :mixpanel) %> | |
<% end %> |
Updated for Rails 4.0.0+
Set up the bower
gem.
Follow the Bower instructions and list your dependencies in your bower.json
, e.g.
// bower.json
{
module ActiveSupport | |
class TaggedLogging | |
%w( fatal error warn info debug unknown ).each do |severity| | |
eval <<-EOM, nil, __FILE__, __LINE__ + 1 | |
def #{severity}(message = nil, progname = nil, &block) | |
add(Logger::#{severity.upcase}, message, progname, &block) | |
end | |
EOM | |
end |
Введение
Начать стоит отсюда. Не пугайтесь то, что это книга по незнакомой OS, эти термины практически везде одинаковые и здесь они изложены в понятной для начинающих форме.
http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_procs.html
Прочесть нужно треть главы до подраздела "Starting a process", если С не пугает, читайте полностью. После прочтения вы будете понимать, что такое process, thread, mutex, priorites, semaphores, scheduler, contex-switch, kernel states.
Ruby
sudo add-apt-repository ppa:pitti/postgresql | |
sudo apt-get update | |
sudo apt-get install postgresql-9.2 postgresql-server-dev-9.2 postgresql-contrib-9.2 | |
sudo su -l postgres | |
psql -d template1 -p 5433 | |
CREATE EXTENSION IF NOT EXISTS hstore; | |
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | |
service postgresql stop | |
/usr/lib/postgresql/9.2/bin/pg_upgrade -b /usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.2/bin -d /var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.2/main/ -O "-c config_file=/etc/postgresql/9.2/main/postgresql.conf" -o "-c config_file=/etc/postgresql/9.1/main/postgresql.conf" |
# TL;DR: YOU SHOULD DELETE THIS FILE | |
# | |
# This file was generated by Cucumber-Rails and is only here to get you a head start | |
# These step definitions are thin wrappers around the Capybara/Webrat API that lets you | |
# visit pages, interact with widgets and make assertions about page content. | |
# | |
# If you use these step definitions as basis for your features you will quickly end up | |
# with features that are: | |
# | |
# * Hard to maintain |
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
$VERBOSE = nil | |
require File.expand_path('../rooby', __FILE__) | |
Person = Rooby::Class.new 'Person' do | |
define :initialize do |name| | |
@name = name | |
end | |
define :name do |