This file contains hidden or 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
package main | |
import "fmt" | |
func main() { | |
var ( | |
height float32 | |
weight float32 | |
index float32 | |
) |
This file contains hidden or 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
# Run ORC on local host with docker | |
# Download https://github.com/tesseract-ocr/tessdata_best for best quality | |
# Use -l hye+eng+rus to read Armenian and other languages | |
# And download tessconfigs, it is a link in repo as @tessconfigs | |
IMAGE_FULL_PATH= | |
docker run -it --rm \ | |
-v /path/to/tessdata_best:/usr/local/share/tessdata/ \ | |
-v $IMAGE_FULL_PATH:/tmp/img \ |
This file contains hidden or 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
#!/usr/bin/env bash | |
# This model has high quality voice and proccessing time is small | |
FAVORITE_MODEL="en_US-ryan-low.onnx" | |
if [[ "$1" == "-h" ]]; then | |
echo -e " |
This file contains hidden or 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 tkinter as tk | |
from tkinter import ttk | |
from threading import Thread | |
import subprocess | |
import time | |
import os | |
import pyclip |
This file contains hidden or 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 sys | |
map = dict() | |
map[162] = "—" | |
map[163] = ":" | |
map[164] = ")" | |
map[165] = "(" | |
map[166] = "»" | |
map[167] = "«" | |
map[168] = "և" |
This file contains hidden or 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
# Run command in background without using ampersand | |
coproc vlc . | |
# Run command in background and close terminal | |
coproc vlc . ; exit | |
# Note: coproc command works in bash but not works in shell |
This file contains hidden or 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
#!/usr/bin/env bash | |
prefix='https://live-5tvam.cdnvideo.ru/5tvam/5tvam/' | |
chunklistData=$(curl -s ${prefix}'playlist.m3u8') | |
declare -a chunks=('-', '-', '-') | |
appends=0 | |
targetTime=15 | |
out='out.ts' |
This file contains hidden or 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
https://yoyo.am | |
Կայք մտնելուց երբեմն redirect ա անում դեպի spam կայք, սա հիմնականը լինում ա երբ | |
google -ի որոնման արդյունքից կամ facebook -ում դրած գովազդի լինկով են մտնում։ | |
Եթե մի անգամ արդեն արել ա redirect, դրանից հետո մոտ մեկ օր էլ չի անում նույնիսկ եթե incognito-ով են կայքը բացում։ | |
ip -ներով ա user ին որոշում. երբ wifi ից փոխում եմ մոբայլի նորից redirect անում ա incognito-ով։ | |
database ի մեջ կար wp_bv_ip_store դրա վերջում 111 եմ ավվելացրել, չի ազդել խնդիրը շարունակվել ա |
This file contains hidden or 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
const http = require('http') | |
const qs = require('querystring') | |
const {exec} = require('child_process') | |
const PASSWORD = 'your secure password' | |
const PORT = 8080 | |
const PATH = '/' | |
let server = http.createServer(function(req,resp) { | |
if(req.method == 'GET'){ |
This file contains hidden or 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
function getSign(year){ | |
let devider = 12 | |
let signNames = [ | |
'կապիկ', 'աքլոր', 'շուն', 'խոզ', | |
'մուկ', 'ցուլ', 'վագր', 'կատու', | |
'վիշապ', 'օձ', 'ձի', 'այծ', | |
] | |
return signNames[year % devider] |
NewerOlder