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
import requests | |
import re | |
import urllib.request | |
from bs4 import BeautifulSoup | |
from collections import deque | |
from html.parser import HTMLParser | |
from urllib.parse import urlparse | |
import os | |
# Regex pattern to match a URL |
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
// Website you intended to retrieve for users. | |
const upstream = 'api.openai.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = upstream | |
// Countries and regions where you wish to suspend your service. |
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
#!/usr/bin/env python3 | |
"""Library for performing speech recognition, with support for several engines and APIs, online and offline.""" | |
import io | |
import os | |
import tempfile | |
import sys | |
import subprocess | |
import wave |
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 python:3.6.4 | |
# 设置工作目录 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# 安装依赖 | |
RUN pip install flask | |
# 添加应用 | |
ADD . /usr/src/app |
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
$(function(){ | |
var Item = Backbone.Model.extend({ | |
defaults: { | |
part1: 'hello', | |
part2: 'world' | |
} | |
}) ; | |
var List = Backbone.Collection.extend({ |