Ruby On Detect time window

by spaghetticode, March 16, 2011 00:49

sorry, somehow my refactori...

A3897deec9b1dbc6def9f5dfcb58bb60 Talk
class TimeWindow  
  def initialize(start_time, end_time)
    @start_time = WindowTime.new(start_time)
...

Ruby On Detect time window

by spaghetticode, March 16, 2011 00:47

I would go with a more obje...

A3897deec9b1dbc6def9f5dfcb58bb60 Talk
require 'uri'
require 'net/http'
require 'net/https'
...

Ruby Ugly net/http code

by spaghetticode, August 02, 2010 06:37, No refactoring, tagged with ruby, net/http

I am not an expert of the n...

A3897deec9b1dbc6def9f5dfcb58bb60 Talk
module Actions
  attr_accessor :prefix

...

Ruby On instance extending problem

by spaghetticode, July 16, 2010 02:35

Quick & dirty:

A3897deec9b1dbc6def9f5dfcb58bb60 Talk
class Array
  def count_by
    inject(Hash.new{|k,v| k=0}) do |res, e|
...

Ruby On Array.group_by that counts

by spaghetticode, June 28, 2010 17:55 Star_fullStar_fullStar_fullStar_fullStar_full
A3897deec9b1dbc6def9f5dfcb58bb60 Talk
class LineStream
  def initialize(bool)
    # ...
...

Ruby On Checking validity of messag...

by spaghetticode, June 25, 2010 22:10 Star_fullStar_fullStar_fullStar_full

Guess it's not what you exp...

A3897deec9b1dbc6def9f5dfcb58bb60 Talk
def create_files
  %w{ 10K 100K 500K 1M 2M 5M 10M 20M }.inject([]) do |files, size|
    100.times { files << create_file(size) }
...

Ruby On Eliminate temporary collect...

by spaghetticode, June 25, 2010 18:01 Star_fullStar_fullStar_fullStar_full
A3897deec9b1dbc6def9f5dfcb58bb60 Talk