Skip to content

Instantly share code, notes, and snippets.

View sushantjha8's full-sized avatar
🏠
Working from home

Susahant sushantjha8

🏠
Working from home
  • ResoluteAI
View GitHub Profile
@sushantjha8
sushantjha8 / app.py
Last active September 19, 2022 10:55
For more details check here https://medium.com/p/42d7fde93f0a/
from flask import Flask,jsonify,requests
from concurrent import futures
from quart import Quart
from celery import Celery
import asyncio
async def fetch_url(session,api_link,params):
return await session.post(api_link,jsonify(params))
{
"embeddings": [
{
"tensorName": "My tensor",
"tensorShape": [
1000,
50
],
"tensorPath": "https://raw.githubusercontent.com/.../tensors.tsv",
"metadataPath": "https://raw.githubusercontent.com/.../optional.metadata.tsv"
@sushantjha8
sushantjha8 / deploying_simple_api.md
Created November 20, 2019 17:22 — forked from prodeveloper/deploying_simple_api.md
Deploying your RESTful API to heroku

In this session, we are going to mimic a posts api that we worked on in a previous class. Typecode provides the free sample api.

APIs are what enable the backend, frontend and your mobile application to work together. We have also seen how to build basic REST api using Django Rest Framework

To get the post API to work we will need to work on four modules:

@sushantjha8
sushantjha8 / .block
Created July 26, 2019 09:42 — forked from donmccurdy/.block
Custom tiles in Google Maps
license: apache-2.0
@sushantjha8
sushantjha8 / Install NVIDIA Driver and CUDA.md
Created December 22, 2018 15:03 — forked from zhanwenchen/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS
@sushantjha8
sushantjha8 / circle_detection.py
Created November 12, 2018 17:44 — forked from martinsik/circle_detection.py
Circle detection with OpenCV 3.0
import cv2
import time
import math
import numpy as np
capture = cv2.VideoCapture(0)
print capture.get(cv2.CAP_PROP_FPS)
t = 100
w = 640.0
@sushantjha8
sushantjha8 / deep_learning_Jul17.md
Created September 1, 2018 05:33 — forked from thomasdic2000/deep_learning_Jul17.md
Awesome Deep Learning @ July2017

Deep Learning

Deep learning

  • Accelerating Stochastic Gradient Descent. arxiv
  • Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour. url
  • Activation Ensembles for Deep Neural Networks. arxiv
  • A Generalization of Convolutional Neural Networks to Graph-Structured Data. arxiv keras
  • A GPU-Based Solution to Fast Calculation of Betweenness Centrality on Large Weighted Networks. arxiv
  • A Deep Convolutional Auto-Encoder with Pooling - Unpooling Layers in Caffe. arxiv
@sushantjha8
sushantjha8 / tensorflow_self_check.py
Created June 24, 2018 19:02 — forked from mrry/tensorflow_self_check.py
[DEPRECATED] TensorFlow on Windows self-check
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# 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,
@sushantjha8
sushantjha8 / image_to_sqlite.py
Last active April 30, 2018 10:02 — forked from zed/allessandro.py
store multiple images in a single file using sqlite3 in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import glob
import os
import sqlite3
# support both Python 2.x and 3.x
try: buffer = buffer
except NameError:
buffer = lambda x: x # on Python 3.x 'rb' mode already returns what we need
@sushantjha8
sushantjha8 / install.sh
Created February 11, 2018 17:18 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`