Five years of "Today I Learned" from Josh Branchaud

Updated . Posted . Visible to the public.

The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud). It includes an extensive list of over 900 TILs on many topics that might be interesting for most of us. (e.g. Ruby, Rails, Git, Unix..)

Ruby

Here is an excerpt of all the Ruby TILs Show archive.org snapshot that were new to me. I encourage you to take your time to skim over the original list as well!

RSpec.configure do |config|
  config.example_status_persistence_file_path = "tmp/failed_specs.txt"
end
# Then, run "rspec --only-failures"
{ key: [1,2] }.each { |key, (x, y)| puts "#{x}- #{y}" }
# frozen_string_literal: true
binding.local_variables.inspect
gem environment
stub_request(:post, %r|/api/posts|)
[1,2,3].count { |x| x.odd? }
bundle install --jobs 4
bundle _1.16.6_ --version
puts "I am #@name"
  let(:order) do
    create(:order, name: "My Order").tap do |order|
      create(:item, name: "Burger", order: order, price: 4.99)
      create(:item, name: "Fries", order: order, price: 2.99)
    end
  end
Float#next_float
Float#previous_float

Chrome

  • On the developer console, copy data to the system clipboard with copy('data').

Git

JavaScript

Michael Leimstädtner
Last edit
Michael Leimstädtner
License
Source code in this card is licensed under the MIT License.
Posted by Michael Leimstädtner to makandra dev (2020-04-27 13:44)