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 cv2 | |
from pycocotools.coco import COCO | |
from tqdm import tqdm | |
import numpy as np | |
import os | |
import os.path as osp | |
import shapely | |
from copy import deepcopy | |
import json | |
import shutil |
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 getAllIndexes(string, texts) { | |
const results = []; | |
texts.forEach(text => { | |
const regex = new RegExp(text, 'gi'); | |
let match; | |
while ((match = regex.exec(string)) !== null) { | |
const startIndex = match.index; | |
const endIndex = match.index + text.length - 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
import bpy | |
import threading | |
import uvicorn | |
from fastapi import FastAPI | |
# Define the FastAPI application | |
app = FastAPI() | |
@app.get("/") | |
def read_root(): |
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
#!/bin/bash | |
FLAG_FILE="/tmp/startup_script_executed" | |
if [ ! -f "$FLAG_FILE" ]; then | |
# Your commands here | |
echo "Running startup commands..." | |
# Example: Start a new tmux session with specific windows | |
tmux new-session -d -s my_session |
OlderNewer