FILE = File.join(File.dirname(__FILE__), '..', 'activity_exercise_sport.csv')

  WEIGHTS = [130, 155, 180, 205]
...

Ruby CSV to hash

by Chirantan Rajhans, August 24, 2011 04:34, No refactoring, tagged with one-liner, array hash

The part where weight_calor...

18bcc556d7688096bd4daa5d72bd6c32 Talk
sum = 0
self.items.each { |item| sum += item.fragments.count }
      
...

Ruby Calculate sum of items in a...

by FRKT, August 16, 2010 08:12, 4 refactorings, tagged with array hash

I'm pretty sure I'm not doi...

28e9d19f948f2367b2da007e7ad858fd Talk
#1/bin/bash

PKG_MANAGER="paludis"
...

Bash Big and Ugly Associative Ar...

by gregf, November 14, 2009 03:43, 3 refactorings, tagged with bash, array hash

Working on a script, took o...

70b86492b31e21b0748cc637a6b2f05a Talk