Skip to content

Instantly share code, notes, and snippets.

@harshitsinghai77
harshitsinghai77 / main.go
Created November 4, 2020 08:55
using go-restful to create REST API using go programming language.
package main
import (
"database/sql"
"encoding/json"
"log"
"net/http"
"time"
"github.com/emicklei/go-restful"
name: Python application test with Github Actions
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
from functools import wraps
from time import time
import click
import numba
import pandas as pd
import numpy as np
@click.group()
def cli():
@harshitsinghai77
harshitsinghai77 / imgbb.py
Created August 8, 2021 09:20
Imgbb upload image via image url
import sys
from urllib import request, parse
import json
API_KEY = 'API_KEY'
IMG_UPLOAD = 'https://api.imgbb.com/1/upload'
# total arguments
n = len(sys.argv)