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 originValidators from "validator"; | |
import { Context, Next } from "koa"; | |
type ValidatorFunction = (value: any, args?: any) => boolean; | |
interface CustomValidators { | |
[key: string]: ValidatorFunction; | |
} | |
const customValidators: CustomValidators = { |
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
[Script Info] | |
; Script generated by Aegisub 3.2.2 | |
; http://www.aegisub.org/ | |
Title: 诸神字幕 | |
Original Script: 诸神字幕组 | |
Synch Point: 0 | |
ScriptType: v4.00+ | |
PlayResX: 1920 | |
PlayResY: 1080 | |
Timer: 100.0000 |
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
name: JavDB-zh | |
sceneByFragment: | |
action: scrapeXPath | |
queryURL: https://javdb.com/search?q={filename}&f=all | |
queryURLReplace: | |
filename: | |
- regex: \..+$ | |
with: "" | |
scraper: sceneQueryScraper | |
sceneByURL: |
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
{ | |
"trailingComma": "es5", | |
"tabWidth": 2, | |
"useTabs": false, | |
"semi": true, | |
"singleQuote": false, | |
"arrowParens": "always" | |
} |
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 flask import Flask | |
from flask_restful import Resource, Api, reqparse | |
import werkzeug, os | |
app = Flask(__name__) | |
api = Api(app) | |
UPLOAD_FOLDER = 'static/img' | |
parser = reqparse.RequestParser() | |
parser.add_argument('file',type=werkzeug.datastructures.FileStorage, location='files') |