View nginx-rendertron.conf
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
server { | |
listen 80; | |
listen [::]:80; | |
root /usr/share/nginx/html; | |
index index.html; | |
location / { |
View extract_ners.py
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
from elasticsearch import Elasticsearch | |
import spacy | |
import os | |
import json | |
from pymongo import MongoClient | |
from spacy.pipeline import EntityRuler | |
import hashlib | |
import inflection | |
def set_custom_boundaries(doc): |
View convert_to_spacy.py
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 sys | |
import json | |
fo = open(sys.argv[1], "r") | |
lines = fo.readlines() | |
for line in lines: |
View Data for AreaBump
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
[ | |
{ | |
"data": [ | |
{ | |
"x": 2013, | |
"y": 1 | |
}, | |
{ | |
"x": 2014, | |
"y": 3 |
View routes.yaml
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: api-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" | |
nginx.ingress.kubernetes.io/enable-cors: "true" | |
nginx.ingress.kubernetes.io/use-regex: "true" | |
View Dockerfile-sitemaps
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
FROM nginx | |
RUN mkdir /usr/share/nginx/html/sitemaps | |
COPY *.xml /usr/share/nginx/html/sitemaps/ |
View generate_sitemaps.py
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 urllib, json | |
import glob | |
import os | |
import pymongo | |
from pymongo import MongoClient | |
# Set the latest Block form the API | |
client = MongoClient(os.environ["DB"]) |
View import_nyse_companies.py
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 pymongo | |
from pymongo import MongoClient | |
import urllib2 | |
import csv | |
# Are we using development or Production ? | |
# uri = "mongodb://USERNAME:PASSWORD@INSTANCE.documents.azure.com:10255/?ssl=true&replicaSet=globaldb" |
View import_candles.py
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 pymongo | |
from pymongo import MongoClient | |
import csv | |
import urllib2 | |
import sys | |
import os.path | |
from datetime import datetime, timedelta | |
QUANDL_API_KEY = "YOUR_API_KEY" |
View crypto_patterns.py
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
from flask import Flask, make_response | |
from pymongo import MongoClient | |
import numpy as np | |
import talib | |
from talib import abstract | |
from talib.abstract import * | |
import json | |
import datetime | |
import numpy as np | |
import StringIO |
NewerOlder