- http://edgeguides.rubyonrails.org/4_1_release_notes.html
- http://coherence.io/blog/2013/12/17/whats-new-in-rails-4-1.html
- http://www.slideshare.net/godfreykfc/rails-41
- https://gist.github.com/chancancode/7781341
- http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-0-to-rails-4-1
This file contains hidden or 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
# Generated by Powerlevel10k configuration wizard on 2025-03-03 at 15:20 CET. | |
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 49619. | |
# Wizard options: nerdfont-v3 + powerline, small icons, rainbow, unicode, 24h time, | |
# angled separators, sharp heads, flat tails, 2 lines, dotted, no frame, dark-ornaments, | |
# sparse, many icons, concise, transient_prompt, instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with powerline prompt style with colorful background. | |
# Type `p10k configure` to generate your own config based on it. | |
# |
This file contains hidden or 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
Abby's Ninja Cole z Jesenicke smecky | |
Abby's Ninja Jay z Jesenicke smecky | |
Alexa Cherubic Soul | |
Alfie Amadeus Cherubic Soul | |
Alice Tipota Red Fox | |
Aliya Cherubic Soul | |
Amalia Cherubic Soul | |
Amalka Tipota Red Fox | |
Amalka z Kotarskych luk | |
Amber Cherubic Soul |
This file contains hidden or 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
!define GWI_BG_COLOR #d4007b | |
!define GWI_BORDER_COLOR #abcdef | |
skinparam rectangle<<gwi_system>> { | |
StereotypeFontColor ELEMENT_FONT_COLOR | |
FontColor #ELEMENT_FONT_COLOR | |
BackgroundColor GWI_BG_COLOR | |
BorderColor GWI_BORDER_COLOR | |
} |
This file contains hidden or 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
# lib/tasks/db.rake | |
namespace :db do | |
desc 'Maintains database by running command as ANALYZE, VACUUM and REINDEX' | |
task maintain: :environment do | |
verbose = ENV['VERBOSE'].present? | |
connection = ActiveRecord::Base.connection | |
puts "Maintaining database #{connection.current_database} ..." | |
connection.execute("VACUUM FULL #{'VERBOSE' if verbose}") |
This file contains hidden or 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
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n | |
cs: | |
errors: | |
messages: | |
already_confirmed: 'byl již potvrzen, prosím, zkuste se přihlásit' | |
confirmation_period_expired: 'musí být potvrzen během %{period}, požádejte prosím o nový' | |
expired: 'vypršel, požádejte prosím o nový' | |
not_found: 'nenalezen' | |
not_locked: 'nebyl uzamčen' |
This file contains hidden or 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
rails _3.2.15_ new rails_update --database=postgresql --skip-bundle | |
rails _4.1.0_ new rails_update --database=postgresql --skip-bundle |
This file contains hidden or 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 Player | |
def play_turn(warrior) | |
warrior.walk! | |
end | |
end |
This file contains hidden or 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
CREATE EXTENSION tablefunc; | |
CREATE TABLE sales(year int, month int, qty int); | |
INSERT INTO sales VALUES(2007, 1, 1000); | |
INSERT INTO sales VALUES(2007, 2, 1500); | |
INSERT INTO sales VALUES(2007, 7, 500); | |
INSERT INTO sales VALUES(2007, 11, 1500); | |
INSERT INTO sales VALUES(2007, 12, 2000); | |
INSERT INTO sales VALUES(2008, 1, 1000); | |
INSERT INTO sales VALUES(2009, 5, 2500); |
This file contains hidden or 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
# db/migrate/20131118172653_create_transactional_items_view.rb | |
class CreateTransactionalItemsView < ActiveRecord::Migration | |
def up | |
select_sql = File.open("#{Rails.root}/db/migrate/20131118172653_create_transactional_items_view.sql", 'r') { |f| f.read } | |
# for materialized view: | |
view_sql = "CREATE MATERIALIZED VIEW transactional_items AS (#{select_sql})" | |
# for normal view: | |
view_sql = "CREATE VIEW transactional_items AS (#{select_sql})" | |
NewerOlder