Devguru
An easy way to do JavaScript - CoffeeScript presentation

A short introduction to new great tool which is CoffeeScript.

My .irbrc file.

This is how my irbrc file looks like:


if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
 require 'logger'
 RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
require 'rubygems'
require 'wirble'
require 'interactive_editor'
ActiveRecord::Base.logger = Logger.new(STDOUT) if Object.const_defined?('ActiveRecord')
Wirble.init
Wirble.colorize

Rails engines
How to get table of ActiveRecord model instances ids.


>> SomeModel.connection.select_values SomeModel.send(:construct_finder_sql, :select =>:id, :limit => 20)

=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

Method missing in JavaScript
New application certificate

So you finally finished your work? Everything is checked and the code seems to be working? Brand your application with the “Works on my machine” logo and make sure your customers and co-workers see it.

More details.

via HackerNews

RuPy Tuesday - Haml & Sass (SCSS) Presentation