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 json | |
import re | |
from pathlib import Path | |
import click | |
from docarray import Document, DocumentArray | |
BLACK_TOKENS = set(['test', 'prefab', 'background']) | |
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 python | |
# -*- coding: utf-8 -*- | |
""" | |
""" | |
import os | |
import sys | |
import argparse | |
import json | |
import numpy as np | |
from numpy import dot |
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 python | |
# -*- coding: utf-8 -*- | |
""" | |
""" | |
import os | |
import sys | |
import argparse | |
import json | |
import numpy as np | |
from numpy import dot |
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
# Copyright 2019 The MediaPipe Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
(setq warning-minimum-level :emergency) | |
(setq load-prefer-newer t) | |
;; package --- smarry | |
;;; Commentary: | |
;; package 包管理 | |
(require 'package) | |
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") | |
("tromey" . "http://tromey.com/elpa/") | |
("marmalade" . "http://marmalade-repo.org/packages/") |
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
# No delay for escape key press | |
set -sg escape-time 0 | |
# 关闭窗口后重新编号 | |
set -g renumber-windows on | |
# 事件窗口信息,如有内容变动,进行提示 | |
setw -g monitor-activity on | |
set -g visual-activity on |
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 uuid | |
import plyvel | |
import pickle | |
import random | |
def setup_db(data_path): | |
# import plyvel | |
return plyvel.DB(data_path, create_if_missing=True) |