Skip to content

Instantly share code, notes, and snippets.

View janderson16's full-sized avatar

James Anderson janderson16

  • Atlanta, Georgia
View GitHub Profile
@janderson16
janderson16 / JA-prework.md
Last active November 26, 2016 17:30 — forked from mbburch/prework.md
My Turing pre-work Gist

Turing School Prework- James

Task A- Practice Typing:

  • screenshots of scores will be posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections will be posted in comments

Task C- Create your Gist:

@janderson16
janderson16 / credit_check
Created December 2, 2016 00:27
credit_check.rb
account_number = "5541808923795240"
cc_number = account_number.chars.map do |num|
num.to_i
end
doubled_digits = cc_number.map.with_index do |num, index|
if index.even?
num * 2
else