Skip to content

Instantly share code, notes, and snippets.

View OPHoperHPO's full-sized avatar
🎯
Focusing

Nikita Selin OPHoperHPO

🎯
Focusing
View GitHub Profile
@OPHoperHPO
OPHoperHPO / gttranslate.sh
Created July 14, 2018 04:17
Console Google Translate (bash + curl + sed) UPDATED 14.07.2018
#! /bin/bash
### Console Google Translate
### Example usage:
### gttranslate <source_lng> <new_lng> <your text>
### This bash script is combine of this scripts https://gist.github.com/elFua/3342075 and https://gist.github.com/ayubmalik/149e2c7f28104f61cc1c862fe9834793
### Updated by Anodev https://github.com/OPHoperHPO/
USAGE="
Example usage: '$0 <source_lng> <new_lng> <your text>'
Usage: '$0 en ru text'
@kylehounslow
kylehounslow / client.py
Last active April 23, 2024 10:58
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'