Skip to content

Instantly share code, notes, and snippets.

@wilkinsbrian
wilkinsbrian / fizzbuzz.rb
Created Jul 13, 2014
Ruby FizzBuzz with If Statement
View fizzbuzz.rb
def fizzbuzz(n)
if (n % 3 == 0)
puts "Fizz"
end
if (n % 5 == 0)
puts "Buzz"
end
if !((n % 3 == 0) || (n % 5 == 0))
puts n
end
View convertMkv
#!/bin/bash
############################################################
# Recursively peruses a directory and converts MKV files
# to MP4 for streaming to Xbox360.
#
# @author: Ticean Bennett
# @url: http://ticean.com
# @see: http://trac.handbrake.fr/wiki/CLIGuide#options
#
# @param file The complete file path.
You can’t perform that action at this time.