Skip to content

Instantly share code, notes, and snippets.

Working from home

David Cunha davidcunha

Working from home
View GitHub Profile
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" do |t|
t.pattern = "spec/features/*_spec.rb"

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 /
Last active Jun 27, 2017
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


  • searching and deletion are slow