This file contains 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 warnings | |
from skimage.measure import compare_ssim | |
from skimage.transform import resize | |
from scipy.stats import wasserstein_distance | |
from scipy.misc import imsave | |
from scipy.ndimage import imread | |
import numpy as np | |
import cv2 | |
## |
This file contains 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
curl http://api.ofdx.ru/v1/items?fn=123&fpd=123&fd=123 |
This file contains 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
global | |
tune.ssl.default-dh-param 1024 | |
defaults | |
timeout connect 10000ms | |
timeout client 60000ms | |
timeout server 60000ms | |
frontend fe_http | |
mode http |
This file contains 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
from PIL import Image | |
import zbarlight | |
file_path = '/Users/ivankumar/Downloads/sample3.jpg' | |
with open(file_path, 'rb') as image_file: | |
image = Image.open(image_file) | |
image.load() | |
codes = zbarlight.scan_codes('qrcode', image) | |
print('QR codes: %s' % codes) |
This file contains 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
# SEED NODE | |
{ | |
"id": "/mycoolenv/cassandra-seed", | |
"cmd": "chown -R cassandra /var/lib/cassandra && start $SEED", | |
"cpus": 0.5, | |
"mem": 400, | |
"disk": 0, | |
"instances": 1, | |
"constraints": [ | |
[ |
This file contains 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
def com(A, B): | |
result = [[[] for j in range(0, 4)] for i in range(0, 4)] | |
for i in range(0, 4): | |
T = [] | |
for j in range(0, 4): | |
for k in range(0, 4): | |
result[i][j].append(min(A[i][k], B[k][j])) | |
return result |
This file contains 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
#!/bin/bash | |
NEXUS_URL=http://blabla:8080/nexus | |
GROUP=$1 | |
ARTIFACT=$2 | |
VERSION=$3 | |
PACKAGING=$4 | |
if [[ $# != 4 ]]; then |
This file contains 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
SONARQUBE_JDBC_URL=jdbc:mysql://db:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&maxAllowedPacket=2145638 |
This file contains 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
; ВАРИАНТ №252 | |
; F = 0x2569 + (0x12 + x - y) | |
; Макрос выделяет место в стеке под 4 обязательных | |
; аргумента функций, а также, если необходимо, | |
; под дополнительные | |
STACKALLOC macro argc | |
; Запоминаем указатель на изначальный стек | |
push r15 | |
mov r15, rsp |
This file contains 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
project = SP and reporter IN (admin, admin2) AND summary ~ task AND description ~ text AND status = "to do" |
NewerOlder