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
// Singly-linked lists are already defined with this interface: | |
// function ListNode(x) { | |
// this.value = x; | |
// this.next = null; | |
// } | |
// | |
function reverseNodesInKGroups(l, k) { | |
return calculate(l, k , Math.floor(sizeOf(l)/k)) | |
} |
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
gem install haml sass will_paginate memcache-client rufus-scheduler javan-whenever sinatra mysql2 devise nifty-generators restfulie thinking-sphinx simplecov factory_girl_rails capybara database_cleaner cucumber-rails cucumber spork launchy rspec-rails ZenTest test_notifier autotest-notification --pre | |
gem install haml sass will_paginate memcache-client rufus-scheduler javan-whenever sinatra mysql2 devise nifty-generators restfulie thinking-sphinx simplecov factory_girl_rails capybara database_cleaner cucumber-rails cucumber spork launchy rspec-rails ZenTest test_notifier autotest-notification hpricot paperclip |
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 Relatorio | |
attr_reader :titulo, :texto | |
attr_accessor :formatter | |
def initialize(&formatter) | |
@titulo = 'Relatorio Mensal' | |
@texto = [ 'Gastos do mês', 'contas, e mais contas.' ] | |
@formatter = formatter | |
end | |