pip install -r requirements.txt
Run the backend server
import thread | |
from django.conf import settings | |
from django.core.context_processors import csrf | |
from django.http import HttpRequest, HttpResponse | |
from django.middleware.csrf i |
from pycallgraph import PyCallGraph | |
from pycallgraph import Config | |
from pycallgraph import GlobbingFilter | |
from pycallgraph.output import GraphvizOutput | |
class ProfilerMiddleware(object): | |
includes = [] | |
def can(self, request): |
import asyncio | |
import logging | |
import time | |
import psutil | |
logger = logging.getLogger(__name__) |
""" | |
日本語の「ら抜き言葉」を検知します。語は(可能動詞とした)終止形で指定してください(例:見れる)。 | |
実装については以下のURLを参照してください。 | |
https://blog.shodo.ink/entry/2021/09/05/013031 | |
形態素解析の辞書によっては、ら抜き言葉を1語として認識することがあるため必要となります。 | |
例:UniDic、SudachiDict、IPADic(見れる・来れるのみ) | |
こちらのコードはMIT Licenseとして公開します。 | |
Copyright (c) 2021 ZenProducts Inc. |
import random | |
data = [ | |
"分け目ぴっしー", | |
"背筋ぴーん", | |
"ワイシャツパリ", | |
"ネクタイギュッ", | |
"ネクタイピンパチ", | |
"背広ファッ", |
import re | |
import time | |
from pathlib import Path | |
from urllib.request import urlretrieve | |
from PIL import Image | |
ROOT_DIR = Path("path/to/repo") | |
PATH_GLOB = "**/*.md" |
<template> | |
<quill-editor :content="value" | |
@change="onChange" | |
ref="myQuillEditor" | |
:options="editorOption" | |
@blur="onEditorBlur($event)" | |
@focus="onEditorFocus($event)" | |
@ready="onEditorReady($event)"> | |
</quill-editor> | |
</template> |
function makeModel (fields) { | |
return class BaseModel { | |
constructor(options) { | |
options = options || {} | |
var v; | |
for (var [key, value] of Object.entries(fields)) { | |
if (options.hasOwnProperty(key)) { | |
v = options[key] | |
} else { |