tratata
def foo
end
module Models | |
module Likable | |
extend ActiveSupport::Concern | |
def liked?(record) | |
$redis.sismember redis_key, record.id | |
end | |
def likes_count | |
$redis.scard redis_key |
tratata
def foo
end
class Array | |
def sum | |
inject(0) { |s, i| s + i } | |
end | |
end | |
array = [1, 2] | |
while array.last < 4000000 | |
array << array[-2, 2].sum | |
end |
Резюме переехало сюда: http://releu.github.com/resume
class Epay::BankXMLCatcher | |
BANK = 'bank' | |
include XML::SaxParser::Callbacks | |
attr_reader :bank_xml | |
def initialize | |
@bank_xml = "" | |
@in_bank = false |
ru: | |
ui: | |
notice: | |
friends_count: "Вас добавло в друзья %{count} человек" | |
I18n.t("ui.notice.friends_count", :count => 3) | |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: thin | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: S 0 1 6 | |
# Short-Description: thin initscript | |
# Description: thin | |
### END INIT INFO |
testjknkjn |