Skip to content

Instantly share code, notes, and snippets.

module InterestRepository
def my_index
InterestCollection.new(InterestRecord.includes(:account).order(percentage: :desc).all)
end
end
class InterestCollection < Array
def initialize(record_array)
inital_array = record_array.map do |interest_data|
Interest.new(interest_data.attributes_with_associations)
module InterestRepository
extend self
def my_index
InterestRecord.includes(:account).order(percentage: :desc).all.map do |interest_data|
Interest.new(interest_data.attributes_with_associations)
end
end
def fetch(id)
module InterestRepository
extend self
def my_index
Interest.where(fancy: 'query')
.and(more: 'fancy_stuff')
.order('wicked')
.joins('allthethings')
end
end
class Interest < ActiveRecord::Base
validates :account_id, :amount, :rate, presence: true
belongs_to :account
end

Necessary Tools

  • Karabiner
  • Copy-Clip
  • Numi
  • Typora
  • chruby
  • gitsh
  • Bartender
  • devdocs.io

Dear Coworkers,

I was totally hyped after the meeting yesterday. When Robin said he's being mean when telling us to track more time, he actually wasn't. He was raising our attention to a resource of "funding" that we might be able to get immediately. And when Jose suggested to make a game out of, it got me to the idea how we can account how much time we are able to devote to the "Project X"s.

Several team members have already been investing time to Project X, by writing down those ideas and preparing the pitches. I always felt it was okay to spend that time with the upcoming pitch session in mind, but to hack away on something is a different thing. I felt that I don't know how much resources I have available and ended up not doing it at all. That was kinda depressing as the pitches are just a start and the real progress would not happen.

So enough about feelings. How can we introduce a way of accounting that allows for innovation time?

  • First of all, Moritz and Robin will have to find a sustainability tr