Install Cygwin with make, gcc & g++. Download Redis tar.gz package, unpack it.
Edit deps/hiredis/net.c and add the following lines just after the include directives:
/************************************************************************** | |
* OSM2GEO - OSM to GeoJSON converter | |
* OSM to GeoJSON converter takes in a .osm XML file as input and produces | |
* corresponding GeoJSON object. | |
* | |
* AUTHOR: P.Arunmozhi <[email protected]> | |
* DATE : 26 / Nov / 2011 | |
* LICENSE : WTFPL - Do What The Fuck You Want To Public License | |
* LICENSE URL: http://sam.zoy.org/wtfpl/ | |
* |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import lxml.etree | |
import lxml.html | |
import requests | |
xml_sample = """<?xml version="1.0" encoding="UTF-8"?> | |
<foo:Results xmlns:foo="http://www.foo.com" xmlns="http://www.bah.com"> | |
<foo:Recordset setCount="2"> |
#!/usr/bin/python3 | |
# detect tones in sound spectrum with scipy FFT | |
# here sound source is a USB microphone with ALSA (channel 1) | |
from collections import deque | |
import struct | |
import sys | |
import time | |
import threading |
docker run -d -p 9000:9000 --name minio minio/minio server /export
docker logs minio
# This small script shows how to use AllenNLP Semantic Role Labeling (http://allennlp.org/) with SpaCy 2.0 (http://spacy.io) components and extensions | |
# Script installs allennlp default model | |
# Important: Install allennlp form source and replace the spacy requirement with spacy-nightly in the requirements.txt | |
# Developed for SpaCy 2.0.0a18 | |
from allennlp.commands import DEFAULT_MODELS | |
from allennlp.common.file_utils import cached_path | |
from allennlp.service.predictors import SemanticRoleLabelerPredictor | |
from allennlp.models.archival import load_archive |
DATA = [ | |
[ | |
[['Who', 'is', 'Shaka', 'Khan', '?'], ['O', 'O', 'I-PER', 'I-PER', 'O']] | |
], | |
[ | |
[['I', 'like', 'London', 'and', 'Berlin', '.'], ['O', 'O', 'I-LOC', 'O', 'I-LOC', 'O']] | |
] | |
] | |
with open('output.conll', 'w') as f: |
You have to do 2 things in order to allow your container to access your host's postgresql database
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
""" | |
__author__ = "Raquel G. Alhama" | |
__email__ = "[email protected]" | |
Script to parse text with Spacy and print the output in CoNLL-U format. | |
Refs: | |
https://spacy.io/ | |
http://universaldependencies.org/format.html | |
""" |
from flask import Flask | |
from flask_sqlalchemy import SQLAlchemy | |
import os | |
import graphene | |
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField | |
from flask_graphql import GraphQLView | |
################################# | |
app = Flask(__name__) | |
app.debug = True |