Skip to content

Instantly share code, notes, and snippets.

View andersonleite's full-sized avatar
🎯
Focusing

Anderson Leite andersonleite

🎯
Focusing
View GitHub Profile
@andersonleite
andersonleite / Albie.js
Last active July 14, 2019 19:31 — forked from mauricioaniche/Albie.java
Reverse Nodes In K Groups
// 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))
}
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
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