Skip to content

Instantly share code, notes, and snippets.

View gist:559579
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm -f public/javascripts/*"
run "rm public/robots.txt"
file "public/robots.txt", <<-FILE.gsub(/^ /, '')
User-agent: *
Disallow: /
View gist:513585
I18n.backend.add_pluralizer(:ru,
lambda{ |c| \
c == 0 ? :none \
: (c % 10 == 1 && c % 100 != 11) ? :one \
: ((5..9).include?(c % 10) || (11..14).include?(c % 100) || c % 10 == 0) ? :many \
: (2..4).include?(c % 10) ? :few \
: :other })
View gist:278426
#!/usr/bin/env ruby
revisions = [
'1.1',
'1.2',
'1.3',
'1.3.2.1',
'1.3.2.3',
'1.3.2.4',
'1.3.4.1',
'1.4',
View gist:278416
#!/usr/bin/env ruby
revisions = [
'1.1',
'1.2',
'1.3',
'1.3.2.1',
'1.3.2.3',
'1.3.2.4',
'1.3.4.1',
'1.4',