#!/usr/bin/ruby
DVD_SIZE=4294967296
CD_SIZE=734003200
...

Ruby DVD Directory Archiver

by seal-7.blogspot.com, September 03, 2008 14:26, No refactoring, tagged with shell, bash, monkey patch, spaghetti

Originally made to move cal...

55502f40dc8b7c769880b10874abc9d0 Talk
require 'uri'
uri=URI.parse("http://www.mydomain.com/search?q=foo&bar=stick&who=you")
uri_params=uri.query.inject({}) {|hsh,i| sides=i.split("="); hsh[sides[0]]=sides[1]; hsh}

Ruby Query String to Hash

by seal-7.blogspot.com, July 10, 2008 13:18, 8 refactorings, tagged with inject, querystring

Probably can't be refactore...

55502f40dc8b7c769880b10874abc9d0 Talk
class DB {
        /*
        $c=new DB();
...

PHP Database Class

by seal-7.blogspot.com, July 09, 2008 17:47, 7 refactorings, tagged with php, database

We use this class in 1000's...

55502f40dc8b7c769880b10874abc9d0 Talk