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 subprocess | |
import itertools | |
import string | |
import time | |
import os | |
import logging | |
from multiprocessing import Pool, cpu_count, Manager | |
# Configurazione dei logger | |
logger = logging.getLogger() |
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 imagehash | |
from PIL import Image | |
import numpy as np | |
def combine_hashes_mode(*hashes): | |
""" | |
Combina più hash di immagini utilizzando la modalità per ciascun bit. | |
Controlla anche se un'immagine è completamente nera o bianca. | |
Parameters: |
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
GIALLO -> 2.2K | |
VERDE -> 20K | |
ROSSO -> 3.3K |
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 decimal import * | |
n = 1e4 | |
def factorial(n): | |
fact = 1 | |
for i in range(1, int(n) + 1): | |
fact = fact * i | |
return fact |
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
<?php | |
function encrypt($message, $pass) | |
{ | |
$alg = SODIUM_CRYPTO_PWHASH_ALG_DEFAULT; | |
$opslimit = SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE; | |
$memlimit = SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE; | |
$final = $salt = openssl_random_pseudo_bytes(SODIUM_CRYPTO_PWHASH_SALTBYTES); | |
$secret_key = sodium_crypto_pwhash(SODIUM_CRYPTO_SECRETBOX_KEYBYTES, $pass, $salt, $opslimit, $memlimit, $alg); | |
$final .= hash_hmac('sha3-256', $message, $secret_key, true); |
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
<?php | |
class OpenWeatherMap | |
{ | |
var $api; | |
/** | |
* OpenWeatherMap constructor. | |
* @param $a | |
*/ |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
from bmp280 import * | |
geo = "" #coordin sea | |
d_api = "" #api darksky | |
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
<?php | |
class Rg { | |
/* | |
Based on Rapidgator Api | |
https://support.rapidgator.net/index.php?/Knowledgebase/Article/View/89/9/do-you-have-api | |
*/ | |
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
#!/usr/bin/python | |
#-------------------------------------- | |
# ___ ___ _ ____ | |
# / _ \/ _ \(_) __/__ __ __ | |
# / , _/ ___/ /\ \/ _ \/ // / | |
# /_/|_/_/ /_/___/ .__/\_, / | |
# /_/ /___/ | |
# | |
# bme280.py | |
# |
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
<?php | |
namespace Curl; | |
class Curl { | |
const VERSION = '7.3.0'; | |
const DEFAULT_TIMEOUT = 30; | |
public $curl; | |
public $id = null; |
NewerOlder