Skip to content

Instantly share code, notes, and snippets.

View avsej's full-sized avatar
🛋️
On the couch

Sergey Avseyev avsej

🛋️
On the couch
View GitHub Profile
require 'rubygems'
require 'id3lib'
$KCODE = 'u'
require 'jcode'
require 'kconv'
FOLDER = '/Users/pa/Tmp/book'
AUTHOR = 'Лем С.'
BOOK_TITLE = 'Возвращение со звезд'
@avsej
avsej / Output
Created January 9, 2010 14:02 — forked from pager/Output
user system total real
pure functional 1.820000 0.000000 1.820000 ( 1.817629)
mutable discriminator 1.530000 0.000000 1.530000 ( 1.534346)
imperative 1.110000 0.020000 1.130000 ( 1.118294)
cursor/iterator 2.370000 0.000000 2.370000 ( 2.373262)
true enumerator 2.090000 0.000000 2.090000 ( 2.089513)
Loaded suite sequences_by
Started
.
Finished in 0.000497 seconds.
# This is a monkey patch for MessageVerifier — I need to change Marshal.load to JSON
if defined?(ActionController::Flash::FlashHash)
class ActionController::Flash::FlashHash
def to_json(*args)
{}.merge(self).merge({:used => @used}).to_json
end
end
end