Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
require "open-uri"
require "json"
require "pp"
###
# loading bullet
###
@mickey24
mickey24 / parser.rb
Created August 19, 2010 10:15 — forked from yagays/parser.rb
#/usr/bin/env ruby
def open_t_delimited_file(filename)
h = {}
open(filename) {|f|
f.each_line do |line|
a = line.split("\t")
h[a[0]] = a
end
}