This file contains hidden or 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 node:8 | |
RUN mkdir /code | |
WORKDIR /code | |
COPY package.json /code/ | |
RUN npm -g config set user root | |
RUN npm install -g node-sass postcss-cli autoprefixer | |
RUN npm install | |
FROM python:3.5 | |
ENV PYTHONUNBUFFERED 1 |
This file contains hidden or 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
version: '3' | |
services: | |
index: | |
image: solr | |
ports: | |
- "8983:8983" | |
volumes: | |
- ./solr_conf:/opt/solr/server/solr/configsets/core-name:ro | |
command: | |
- solr-precreate |
This file contains hidden or 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 percy import percy_snapshot | |
from scrapy.spiders import SitemapSpider | |
from selenium import webdriver | |
class PercySpider(SitemapSpider): | |
"""Sitemap crawler that uploads DOM snapshots to Percy.""" | |
name = "cdhweb" | |
sitemap_urls = ["http://localhost:8000/sitemap.xml"] |
This file contains hidden or 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
class SuParKanbunTokenizer(object): | |
to_disk = lambda self, *args, **kwargs: None | |
from_disk = lambda self, *args, **kwargs: None | |
to_bytes = lambda self, *args, **kwargs: None | |
from_bytes = lambda self, *args, **kwargs: None | |
def __init__(self, bert, segment, vocab) -> None: | |
self.bert = bert | |
self.vocab = vocab | |
self.simplify = {} |
This file contains hidden or 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
# frozen_string_literal: true | |
# require 'ruby-prof' | |
require 'csv' | |
# locations | |
## institution | |
SU_ID = '8d433cdd-4e8f-4dc1-aa24-8a4ddb7dc929' | |
## campus |
This file contains hidden or 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
"""Auto-generate CoNLL-2002 (IOB) entities by tagging a text file.""" | |
from pathlib import Path | |
from typing import Optional | |
from typing_extensions import Annotated | |
import spacy | |
from spacy.training import offsets_to_biluo_tags | |
from spacy.training import biluo_to_iob | |
import typer |
This file contains hidden or 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
""" | |
Report weather data via MQTT. | |
""" | |
import sys | |
import os | |
import requests | |
import time | |
import paho.mqtt.client as mqtt |
OlderNewer