Skip to main content

Bryce

Member since Oct 10, 2012

Recent Blog Comments By Bryce

  • Seven Languages In Seven Weeks: Ruby - Day 2

    Posted on Oct 10, 2012 at 2:13 PM

    My first solution for the problem #3. I'd be curious to better implementations though.... # readFile.rb filename = ARGV[0] word = ARGV[1] f = File.open(filename, 'r') f.each_line { |line| /#{word}/.match(line) ? (puts "#{f.lineno}: #{line}") : next} # From Command Line ruby readFile.rb ... read more »

  • Seven Languages In Seven Weeks: Ruby - Day 2

    Posted on Oct 10, 2012 at 1:44 AM

    Way dated but since I'm just now getting into this book I'd like to contribute :) My answer was close to Stephen's original... (1..16).each {|i| i % 4 == 0 ? (puts i) : (print i, ", ")}... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel