Skip to content

Instantly share code, notes, and snippets.

View martinlaws's full-sized avatar

Martin Laws martinlaws

  • Toronto, ON
  • 01:41 (UTC -04:00)
View GitHub Profile
@martinlaws
martinlaws / candidates.rb
Last active October 23, 2015 02:20
Searches and sorts job candidates based on age, years of experience, github points, programming languages, the date applied and the candidate's age
require 'active_support/all'
@candidates = [
{
id: 5,
years_of_experience: 4,
github_points: 293,
languages: ['C', 'Ruby', 'Python', 'Clojure'],
date_applied: 5.days.ago.to_date,
age: 26