Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

David Cunha davidcunha

🏠
Working from home
View GitHub Profile
@davidcunha
davidcunha / spec.rake
Created Jun 17, 2015
Extend rake spec with Capybara feature tests
View spec.rake
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
View power-meter-handbook.md

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 Jun 27, 2017
Data Structures Summary
View data-structures-summary.md

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