Strange behaviour of roo gem when working with sheets (tabs)
Public

Recently I realised a strange behaviour of roo gem when working with sheets (tabs). Here's what works non-intuitively in my opinion.

How to generate Excel column symbols in Ruby - Cool one-liner #1
Public

How to generate Excel column symbols in Ruby ``` ('A'..'Z').to_a.unshift(nil).product(('A'..'Z').to_a).map { |arr| arr.compact.join } ``` If you woul...

RSpec rerun failures
Public

How to configure RSpec to rerun failed specs only

How to be up to date with Ruby and Ruby On Rails releases
Public

Ruby releases: https://www.ruby-lang.org/en/downloads/releases/ Ruby On Rails releases: https://rubygems.org/gems/rails/versions

Example tmux script for Rails
Public

Shell script that will start a tmux session with Rails console and server in side panes

How to add images (i.e. logo) to email messages while using Pony gem.
Public

Pony gem allows to easily send good looking and customizable emails, but it doesn't provide a way to include image in a way that it will be displayed in gma...

Prettier raw SQL in ruby
Public

Use this syntax to format raw SQL nicely in ruby code. In some editors it also enables SQL syntax highlighting.

Set the same password for all users in one query
Public

Reset devise passwords quickly, even for thousands of users.

How to get image details like creation timestamp using MiniMagic
Public

How to get image details like creation date and tile using MiniMagic

Multiline method memoization in ruby
Public

Method memoization in ruby is easy when the method is one line long: ``` def something @something ||= # your calculations end ``` But when we hav...

Launching subprocessess in Ruby
Public

This graph shows several ways to launch subprocess in Ruby.

Local HTTP server using ruby
Public

``` ruby -run -ehttpd . -p8000 ```

De Morgan's laws in Ruby
Public

The negation of a disjunction is the conjunction of the negations and The negation of a conjunction is the disjunction of the negations.

Ruby logger log levels
Public

OK, it seems obvious but I always spend several minutes finding it. So I think it's a good idea to put it here.

How to include logo into devise messages
Public

A quick guide how to include any file, in this case logo to devise messages

Rubular - a Ruby regular expressions editor
Public

Rubular is an online tool to check regular expressions written in Ruby.

http://rubular.com/