Skip to content

Instantly share code, notes, and snippets.

@KamMif
Last active May 4, 2016 09:20
Show Gist options
  • Save KamMif/1be6608fffd8c4f7fb0303be20896516 to your computer and use it in GitHub Desktop.
Save KamMif/1be6608fffd8c4f7fb0303be20896516 to your computer and use it in GitHub Desktop.
read = IO.read(ARGV.first)
puts 'hello' if a == nil
read.chomp
one_str = read.split("\n")
name = "Time"
one_str.each {|x| a = x.split("|")
if a[1].include?(name)
d = a[7].to_i
e = a[7].to_f - d
puts a[1]
y = e.round(1) * 10
rating = "*"
puts rating * y
end}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment