Skip to content

Instantly share code, notes, and snippets.

View pshushereba's full-sized avatar

Patrick Shushereba pshushereba

  • Launch by NTT Data
  • Redlands, California
  • 00:36 (UTC -08:00)
  • X @cpppatrick
View GitHub Profile
class Image
def initialize(image)
@image = image
end
#Iterate through @image input and identify which indices have a "1".
def identify
one_index = []
class Image
def initialize(image)
@image = image
end
def output_image
@image.each { |row| puts row.join }
end
class Image
def initialize(image)
@image = image
end
def output_image
@image.each { |row| puts row.join }
#puts blur(row_index, col_index)
#transform.each { |row_index, col_index| blur(row_index, col_index) }
@pshushereba
pshushereba / deck_final.rb
Created January 22, 2016 02:48
Completed deck.rb program for the Firehose Project
class Card
attr_accessor :rank, :suit
def initialize(rank, suit)
@rank = rank
@suit = suit
end
def output_card
puts "#{self.rank} of #{self.suit}"
@pshushereba
pshushereba / deck.rb
Created January 15, 2016 05:39
Attempt to solve the card deck problem
class Card
attr_accessor :rank, :suit
def initialize(rank, suit)
@rank = rank
@suit = suit
end
def output_card
puts "#{self.rank} of #{self.suit}"