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
setInterval(function() { | |
var ts = Math.round((new Date()).getTime() / 1000); | |
client.query('BEGIN', function(err, result) { | |
if (err) { | |
return console.error('error running query', err); | |
} | |
for (var k in big_dict) { | |
// use hasOwnProperty to filter out keys from the Object.prototype | |
if (big_dict.hasOwnProperty(k)) { | |
var symbol = k; |
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
import numpy as np | |
import codecs | |
import matplotlib.pyplot as plt | |
import sys | |
import csv | |
reload(sys) | |
sys.setdefaultencoding("ISO-8859-1") | |
in_file = sys.argv[1] | |
out_file = sys.argv[2] |
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
# This script matches names like "Mr. Bennet" (and not just "Bennet") | |
# in the XML output of CoreNLP, which has one word per token | |
import xml.etree.ElementTree as ET | |
e = ET.parse('test.xml').getroot() | |
word_list = [] | |
character_dict = dict() |
NewerOlder