1
2
3
4
#!/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 bash, shell, spaghetti, monkey patch

Originally made to move cal...

Avatar Talk
1
2
3
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, 6 refactorings, tagged with inject, querystring

Probably can't be refactore...

Avatar Talk
1
2
3
4
class DB {
        /*
        $c=new DB();
...

PHP Database Class

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

We use this class in 1000's...

Avatar Talk