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
public final class Main { | |
public static void main(String[] args) throws Exception { | |
XPath xpath = XPathFactory.newInstance().newXPath(); | |
DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); | |
Document document = parser.parse(new InputSource(new FileInputStream("ReplaceWithYourTtmlFile.ttml"))); | |
Node metadata = (Node) xpath.compile("/tt/head/metadata").evaluate(document, XPathConstants.NODE); | |
System.out.println(nodeToString(metadata)); |
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
#!/usr/bin/env python3.5 | |
import json | |
import os | |
import pickle | |
import robin_stocks | |
debug = print | |
def print_data(data): |
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
### Author: Blake Hurlburt | |
### This program takes in two regular expressions and tries to determine | |
### whether they recognize the same language. | |
### If the universe is small enough, it tests the entire universe; | |
### otherwise, it tests a random sample from the universe. | |
import itertools as it | |
import re | |
import random | |
import threading |
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
CXX=g++ | |
CXXFLAGS=-std=c++11 -Werror -O0 -g3 | |
all: A0 | |
runtests: test0 test1 test2 test3 test4 test5 test6 test7 test8 | |
test0: A0 | |
./A0 input0.txt output0.txt 1234 && diff output0.txt output0-soln.txt |