Skip to content

Instantly share code, notes, and snippets.

View thiwankajayasiri's full-sized avatar
🎯
Focusing

thiwankajayasiri thiwankajayasiri

🎯
Focusing
View GitHub Profile
@thiwankajayasiri
thiwankajayasiri / Makefile
Created March 8, 2022 08:27 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@thiwankajayasiri
thiwankajayasiri / README.md
Created May 17, 2021 11:11 — forked from boneskull/README.md
MicroPython on ESP32: MQTT and DS18B20 temperature sensor full example
@thiwankajayasiri
thiwankajayasiri / video_save.py
Created September 25, 2020 10:42 — forked from imamdigmi/video_save.py
TensorFlow object detection with video and save the output using OpenCV
"""
This notebook will demontrate a pre-trained model to recognition plate number in an image.
Make sure to follow the [installation instructions](https://github.com/imamdigmi/plate-number-recognition#setup) before you start.
"""
import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
@thiwankajayasiri
thiwankajayasiri / flaskaudiostream.py
Created December 5, 2019 09:42 — forked from hosackm/flaskaudiostream.py
Flask streaming an audio file
from flask import Flask, Response
app = Flask(__name__)
@app.route("/wav")
def streamwav():
def generate():
with open("signals/song.wav", "rb") as fwav:
data = fwav.read(1024)
@thiwankajayasiri
thiwankajayasiri / Dropout.py
Created May 30, 2019 15:59 — forked from yusugomori/Dropout.py
Dropout Neural Networks (with ReLU)
# -*- coding: utf-8 -*-
import sys
import numpy
numpy.seterr(all='ignore')
'''