This file contains 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
time git ls-files --exclude-standard -c -o | awk '/^[^v]/ {print $1}' | ruby -e 'res = {}; STDIN.read.split.map{|file| `git blame -e #{file}`.split.map{|line| line[/<[^>]+?>/i, 1]}.compact.sort.group_by(&:to_s).map{|email, group| res[email] ||= 0; res[email] += group.size}}; puts res.inspect' |
This file contains 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
begin | |
api_rates = post_service.find_rates(destination, boxes) | |
rescue ActiveMerchant::Shipping::ResponseError => e | |
raise Order::ShipmentError, e.message | |
end | |
api_rates = api_rates.select {|r| shipping_method_names.include?(r.service_name) } |
This file contains 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
Очень плохо что вы не послушались моих предостережений насчет комитов прямо в github. Теперь ваши комиты gerrit затер (видимо поэтому вы решили убить процесс gerrit на сервере?). Но комиты остались на githab'e в истории: | |
https://github.com/KeenSystems/keen/commit/c811c46d5f49e11c783484c388ceb5e5a553380b | |
https://github.com/KeenSystems/keen/commit/cd4752e05d977dc42f91e3a176df62282d90e9b6 | |
Так дело не пойдет: либо вы переходите на gerrit, либо мы прекращаем эту, бесполезную на ваш взгляд, рутину с ним. А ведь было бы неплохо, если бы вы смотрели наш код, а мы ваш... | |
На всякий случай я писал инструкции по gerrit: | |
https://github.com/KeenSystems/keen/wiki/Gerrit-instructions | |
Для работы с gerrit нужно зарегистрироваться (2 клика: там есть openID, gmail, github и т.д.) в нем и получить права на комиты. | |
Если вы решаете навсегда забыть про него, то убиваете процесс, как сделали прошлой ночью но минскому времени (не забудьте удалить файл настроек nginx: /opt/nginx/conf/servers/gerrit.print-cart.com.conf) - да будет сч |
This file contains 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
Andrey-Mac-BookPro:keen ka8725$ sudo gem install rmagick | |
Password: | |
Building native extensions. This could take a while... | |
ERROR: Error installing rmagick: | |
ERROR: Failed to build gem native extension. | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb | |
checking for Ruby version >= 1.8.5... yes | |
checking for gcc... yes | |
checking for Magick-config... yes |
This file contains 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
# The priority is based upon order of creation: | |
# first created -> highest priority. | |
# Sample of regular route: | |
# match 'products/:id' => 'catalog#view' | |
# Keep in mind you can assign values other than :controller and :action | |
# Sample of named route: | |
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase | |
# This route can be invoked with purchase_url(:id => product.id) |
This file contains 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
* executing "find /home/ubuntu/saygo/releases/20111125121718/public/images /home/ubuntu/saygo/releases/20111125121718/public/stylesheets /home/ubuntu/saygo/releases/20111125121718/public/javascripts -exec touch -t 201111251217.20 {} ';'; true" | |
servers: ["dev.saygo.ru"] | |
[dev.saygo.ru] executing command | |
*** [err :: dev.saygo.ru] find: | |
*** [err :: dev.saygo.ru] `/home/ubuntu/saygo/releases/20111125121718/public/images' | |
*** [err :: dev.saygo.ru] : No such file or directory | |
*** [err :: dev.saygo.ru] | |
*** [err :: dev.saygo.ru] find: | |
*** [err :: dev.saygo.ru] `/home/ubuntu/saygo/releases/20111125121718/public/stylesheets' | |
*** [err :: dev.saygo.ru] : No such file or directory |
This file contains 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
Альторосовцы! | |
Не забывайте записываться на New Year Party, которую наша компания организует 17 декабря (суббота). | |
В этот раз мы отправляемся в Лас-Вегас, так что всем стоит заранее подготовиться к отдыху: набраться сил и энергии – вечер запланирован феерический. | |
Ведь что такое Лас-Вегас? | |
В нашем случае, это море позитива, танцев, живой музыки (с нами Open Space!), восточная зона (кальяны) и сигарная зона (да, курение – вред, но это же Вегас!) и много-много всего интересного. Но самое главное – это, конечно же, казино. Мы создадим такие условия, что проиграться в пух и прах или озолотиться (в прямом смысле) можно будет максимально комфортно и весело. Сразиться в покер, блэк-джек и другие азартные игры, просадить все честно заработанное на аукционе или оставить в баре – все это вы сможете на нашей вечеринке. И не стоит заморачиваться на тему, что в следующий понедельник вам скажут коллеги. Все, что происходит в Вегасе, остается в Вегасе! Атмосферу праздника создают прежде всего сами его участники, а к |
This file contains 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
Andrey-Mac-BookPro:saygo ka8725$ irb | |
irb(main):001:0> Date | |
NameError: uninitialized constant Date | |
from (irb):1 | |
irb(main):002:0> require 'date' | |
=> true | |
irb(main):003:0> Time.now - (Time.now - 10) | |
=> 9.999999 | |
irb(main):004:0> (Time.now - (Time.now - 10)).class | |
=> Float |
This file contains 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 OrangeTree | |
attr_reader :height # the same as: def height @height; end | |
attr_reader :count_oranges # the same as: def count_oranges @count_oranges; end | |
def initialize(count_live_years = 10, grow_inches_per_year = 1) | |
@grow_inches_per_year = grow_inches_per_year | |
@count_live_years = count_live_years | |
@count_oranges = 0 | |
@age = 0 | |
@height = 0 |
This file contains 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
Andrey-Mac-BookPro:2 ka8725$ irb | |
irb(main):001:0> class A | |
irb(main):002:1> attr_accessor :b | |
irb(main):003:1> end | |
=> nil | |
irb(main):004:0> a = A.new | |
=> #<A:0x10766f9b0> # эта хрень и есть inspect | |
irb(main):005:0> a.inspect | |
=> "#<A:0x10766f9b0>" # видишь вывод тот же | |
irb(main):006:0> a.b = 10 |
OlderNewer