Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
I hereby claim:
To claim this, I am signing this object:
class Circle { | |
private x: number | |
private y: number | |
private radius: number | |
/** | |
* constructor | |
*/ | |
public constructor(x, y, radius) { | |
this.x = x |
<html> | |
<head> | |
</head> | |
<input type="file" id="fileInput" onchange="handleFiles(this.files)"/> | |
<div id="pyodide"/> | |
<body> | |
<script type="text/javascript"> | |
self.languagePluginUrl = "/python/" |
import json | |
import cv2 | |
import os | |
import random | |
import numpy as np | |
from pycocotools import mask as cocoMask | |
class CocoDataset: | |
def __init__(self, annotationFilePath: str, imagesDir: str, masksDir: str, shuffle: bool = True): | |
with open(annotationFilePath, 'r') as annotationFile: |
import time | |
import logging | |
logger = logging.getLogger(__name__) | |
class Timer: | |
def __init__(self, name: str, maxCount = None): | |
self.name = name | |
self.time = 0 | |
self.count = 0 |