Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View davidcunha's full-sized avatar
🏠
Working from home

David Cunha davidcunha

🏠
Working from home
View GitHub Profile
@davidcunha
davidcunha / spec.rake
Created June 17, 2015 23:00
Extend rake spec with Capybara feature tests
require 'rake'
require 'rspec/core/rake_task'
namespace :spec do
desc "Run the code examples in spec/features"
RSpec::Core::RakeTask.new(:features) do |t|
t.pattern = "spec/features/*_spec.rb"
end
end
@davidcunha
davidcunha / power-meter-handbook.md
Last active August 29, 2015 14:14
Power Meter Handbook

Power Meter Handbook

Power meter measures force and velocity

Power (watts) = Force * velocity

Force - torque (force applied to pedals)

Velocity - cadence and RPM, pedaling fast

@davidcunha
davidcunha / data-structures-summary.md
Last active May 13, 2022 04:36
Data Structures Summary

General purposes data structures

Linked Lists

  • small amount of data, not predictable
  • used when data is frequently inserted and deleted
  • searching is slow
  • the insertion order matters when searching

Arrays

  • searching and deletion are slow