Skip to content

Instantly share code, notes, and snippets.

View 8bitDesigner's full-sized avatar

Paul Sweeney 8bitDesigner

  • Cisco Meraki
  • Los Angeles
View GitHub Profile
@8bitDesigner
8bitDesigner / ruby_engineer_task.md
Created January 26, 2016 02:41 — forked from jaredtibs/ruby_engineer_task.md
Youtube Data Checker

Data integrity is so important. We need your help to make sure we've got it.

You've received two different sets of data, each claiming to be the reliable source of truth. Write a ruby command line tool that can parse the two sets of data and output any discrepancies.

The data sits in two CSV files, each with three columns:

Account Email, YouTube Channel, Subscriber Count

You can assume the account emails are the same between files and reliable.

@8bitDesigner
8bitDesigner / YouTube Data Checker.rb
Last active November 17, 2015 19:25 — forked from BrentPalmer/YouTube Data Checker.rb
YouTube Data Checker - Parses through two CSV files and outputs the emails of discrepancies. *Note* I did not know if I was able to ask questions about the challenge? I noticed that prepended to some channel_ownership strings were "UC". I did not know if this was data entry error or not, so i processed as not BUT added the necessary code to take…
require 'csv'
class YouTubeDataParser
def initialize( args )
raise "Missing 'file1.csv'" if args[0].nil?
raise "Missing 'file2.csv'" if args[1].nil?
file1 = CSV.read(args[0], headers: true)
@8bitDesigner
8bitDesigner / .powrc
Last active December 28, 2015 22:09 — forked from nbibler/gist:5307941
Everything you need to use RVM _sanely_.
if [ -f ".rvmrc" ]; then
source ".rvmrc"
fi