This demo should represent a model of the https://github.com/neo4j-examples/oscon-graph[twitter graph at OSCON.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright Jehiah Czebotar 2013 | |
# http://jehiah.cz/ | |
import tornado.options | |
import glob | |
import os | |
import sqlite3 | |
import logging | |
import datetime | |
import csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.options(filepath) | |
opts = {} | |
filepath = filepath.split.join("\n") | |
begin | |
File.open(filepath, "r") do |file| | |
# do stuff | |
end | |
rescue Errno::ENOENT | |
puts "no such file -#{filepath}-" | |
end |