begin
data["body"] = content[1].split(/\W{2,}/)[0].strip()
rescue Exception => e
...
Ruby Exception Handling in Ruby
I have the following code w...
def get_pos(rel_dates):
"""returns the positions of the dates closest to 25%, 50%, and 75%"""
pos = [0] # first element
...
Python Return the indexes of speci...
The function takes an list ...
def scale_dates(dates):
rel_dates = []
first_day = dates[0]
...
Python Scale data points with the ...
In order to print a chart t...
I want to apply some calcul...