gistlib
other ruby categories
programming code snippets in ruby
add a method to a class in ruby
add a private static property to a class in ruby
add a protected method to a class in ruby
can you explain how to do this program and what is required? i didn't understand it when i read it: https://exercism.org/tracks/ruby/exercises/resistor-color-duo in ruby
convert a number from base 10 to base 2 in ruby
create a http server with a head route in ruby
create a json file in ruby
create a matrix in ruby
create a tcp client in ruby
create a tcp server in ruby
create an array with every book of the bible in it in ruby
find the base 10 logarithm of a number in ruby
find the base 2 logarithm of a number in ruby
find the current month in ruby
find the nth root of a number in ruby
find the path of a directory in ruby
find the range of all nodes in a linked list in ruby
find the size of a json file in ruby
find the square root of a number in ruby
find the standard deviation of all nodes in a linked list in ruby
find the values of a map in ruby
find the variance of all nodes in a linked list in ruby
how to do a one-liner c# function? in ruby
rename a file in ruby
vending machine in ruby
what is wrong? `def taker(n) mul = [] (1..n).each do |i| mul << i if (i % 15).zero? end return mul.sum end puts taker(10)` in ruby
gistlib
by LogSnag