input = [9,9,9,9,9,9,9,9,9,9,9,9] input.uniq == 9 ...
Ruby Test if array contains the ...
by astropanic.myopenid.com,
May 23, 2011 07:50,
11 refactorings, tagged with speed, array, uniqueness
def remove_blanks(hash)
values = {}
hash.each do |k,v|
...
Ruby Clear a hash of empty strin...
Any ideas for better implem...
def render_page_sitemap(scope, sitemapname,statics, machines, lang) ...
Ruby Speeding up Sitemap generation
Hi,
I'm looking for a wa...
require 'net/sftp' class Net::SFTP::Session ...
Ruby NET::SFTP clear a remote di...
by dane.oconnor.myopenid.com,
August 19, 2009 15:38,
1 refactoring, tagged with speed, ruby, recursion, net-sftp, files
I'm trying to clear a remot...
class Array # insert i between each element in the array ...
Ruby Ruby: array intersperse, ef...
Intersperse is a method of ...
class Item def raw_tag_list; "one, two, three, four, five"; end def public_tags; [<#Tag name=two>, <#Tag name=five>, <#Tag name=one>, <#Tag name=four>, <#Tag name=three>]; end ...
Ruby Tag ordering code
Is there a faster way to do...
def haar_1d(a)
r = []
(Math.log(a.length) / Math.log(2) - 1).to_i.downto(0) { |j|
...
Ruby Fast Haar Wavelet Transform
by data.map.myopenid.com,
January 26, 2009 03:33,
4 refactorings, tagged with speed, haar, wavelet, optimize, fast
Anyone want to help me opti...
#!/usr/bin/ruby require 'builder' require 'fasterCSV' ...
Ruby Speed up DB access?
Is it possible to speed up ...
module Enumerable # Sorts the enumeration by mapping the # values in the enumeration through the given block. ...
Ruby sort_by_multiple
require "benchmark"
data_s...
# Boids - A Shoes Application # # Author : Wally Glutton - http://stungeye.com ...
Ruby Boids - A Shoes Application
You will need Shoes install...
SIXTYTWO = ('0'..'9').to_a + ('a'..'z').to_a + ('A'..'Z').to_a
def to_s_62(i)
...
Ruby Base 62 Encoding
Base WHAT??? Well, 62 is th...
How I can check all element...