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/env python3 | |
import os | |
import sys | |
import getopt | |
print(""" | |
ββββββββ¦β β¦βββββββ¦ββββββ¦ββββ β¦ βββββββββ | |
β β¦ββ£ β β β¦βββ£ ββββ β β ββ£ β β ββ β¦βββ | |
ββββββ β© β©ββββββ© β©βββ β© βββ β©βββββββββββ | |
""") |
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 | |
$curlHandle = curl_init(); | |
$curl_setopt_array = [ | |
CURLOPT_URL => 'https://google.com.br', | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => "", | |
CURLOPT_MAXREDIRS => 10, | |
CURLOPT_TIMEOUT => 0, |
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 | |
/** | |
* @param string $phone_number | |
* @return string | |
*/ | |
function formatBrazilianPhone($phone_number) | |
{ | |
$phone_number = preg_replace( '/[^0-9]/', '', $phone_number ); | |
$phone_object = [ |
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 | |
$tenantId = 'common'; | |
$authenticationUrl = "https://login.microsoft.com/{$tenantId}/oauth2/v2.0/authorize"; | |
$clientId = "{seu-client-id}"; | |
$clientSecret = '{seu-client-secret}'; | |
$redirectUri = '{seu-redirect-uri}'; | |
$scope = "openid profile offline_access User.Read"; // Escopo de permissΓ΅es necessΓ‘rias | |
$authenticationUrl .= "?client_id=$clientId&redirect_uri=$redirectUri&response_type=code&scope=$scope"; | |
if (isset($_GET['code'])) { |
OlderNewer