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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: gunicorn | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the gunicorn server | |
# Description: starts gunicorn using start-stop-daemon |
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 python | |
from __future__ import print_function, unicode_literals | |
from sys import argv | |
import z3 | |
def parse_spec(n, m): | |
sdk_spec = {} | |
for row in range(n * m): | |
line = raw_input() |
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 as_tikz_graph(graph): | |
"""Converts an nltk.parse.dependencygraph.DependencyGraph object to a Tikz | |
drawing. | |
:graph: An NLTK dependency graph. | |
:returns: A string containing the LaTeX code to draw the graph with the | |
tikz-dependency package. | |
""" | |
nodes = graph.nodelist |