This file contains 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 logging | |
import boto3 | |
from botocore.exceptions import ClientError | |
import os | |
""" | |
Upload a single file to amazon s3 bucket |
This file contains 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 onnxruntime as nxrun | |
import numpy as np | |
import time | |
def mills(): | |
"""function to get current | |
return int(round(time.time() * 1000)) | |
This file contains 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
<!DOCTYPE html> | |
<!-- A Leflet JS map of United States, and polygon is drawn around colorado state, have limit on zooming out --> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="description" content="A Leflet JS map of United States, and polygon is drawn around colorado state, have limit on zooming out created by Muhammad Ahwar https://gist.github.com/Ahwar"> | |
<meta name="keywords" content="HTML, CSS, JavaScript, Leaflet, United States, colorado, polygon "> | |
<meta name="author" content="Muhammad Ahwar"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" |
This file contains 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
<!DOCTYPE html> | |
<!-- A google map of United States, and polygon is drawn around colorado state, have limit on zooming out and zooming in,it will not zoom out anymore, but will zooming in only five steps, mark three positions --> | |
<html> | |
<head> | |
<title>Simple google Map</title> | |
<meta charset="UTF-8"> | |
<meta name="description" content="A google map JS map of United States, and polygon is drawn around colorado state, have limit on zooming out ,it will not zoom out anymore, but will zooming in only five steps, mark three positions created by Muhammad Ahwar https://gist.github.com/Ahwar"> | |
<meta name="keywords" content="HTML, CSS, JavaScript, United States, colorado, polygon "> | |
<meta name="author" content="Muhammad Ahwar"> |
This file contains 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
private Bitmap toBitmap(Image image) { | |
Image.Plane[] planes = image.getPlanes(); | |
ByteBuffer yBuffer = planes[0].getBuffer(); | |
ByteBuffer uBuffer = planes[1].getBuffer(); | |
ByteBuffer vBuffer = planes[2].getBuffer(); | |
int ySize = yBuffer.remaining(); | |
int uSize = uBuffer.remaining(); | |
int vSize = vBuffer.remaining(); |