Skip to content

Instantly share code, notes, and snippets.

@pablotron
pablotron / recall.rb
Last active August 29, 2015 14:15
example recall database parse and search
#!/usr/bin/env ruby
module Recall
class Search
def initialize(path)
# load data
@data = File.readlines(path)
end
def search(q)
pabs@halcyon:~/git/fys> perl perl.pl
host,time
blargh.org,"60d 3h"
blum.net,"40d 3h"
baz.biz,"32d 3h"