Skip to content

Instantly share code, notes, and snippets.

View jlscott2005's full-sized avatar

Jarrod jlscott2005

View GitHub Profile
@jlscott2005
jlscott2005 / gist:9063032
Created February 18, 2014 01:47
Final solution for Readability.
def squared_primes(array)
prime_array = array.select(){|i| Prime.prime?(i)}
final_result = prime_array.map { |x| x * x}
end
@jlscott2005
jlscott2005 / 0.2.1-boggle_class_from_methods.rb
Last active January 2, 2016 06:29 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(board)
@board = board
end
def create_word(board, *coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end
first_name = "Jarrod"
last_name = "Scott"
age = 68