Exemplos da string PIX (geralmente representada por um QR Code), identificando os campos.
Cada campo tem o formato <ID> <tamanho> <valor>
.
Mais detalhes no Manual de Padrões.
00 02 01 // Payload format (fixo)
Exemplos da string PIX (geralmente representada por um QR Code), identificando os campos.
Cada campo tem o formato <ID> <tamanho> <valor>
.
Mais detalhes no Manual de Padrões.
00 02 01 // Payload format (fixo)
<?php | |
function mergeUrlQuery(string $url, array $queryData = []): string | |
{ | |
$parts = parse_url($url); | |
if (empty($parts['host'])) throw new \InvalidArgumentException('url'); | |
$originalQuery = []; | |
if (!empty($parts['query'])) { | |
foreach (explode('&', $parts['query']) as $i => $el) { |
#!/bin/sh | |
# PHP installed in AWS EC2 using Amazon-Linux-Extras is compiled with: | |
# --without-readline --with-libedit | |
# | |
# However, for some reason, libedit doesn't accept UTF-8 input: | |
# https://github.com/bobthecow/psysh/issues/148 | |
# | |
# Instead of building PHP from the source code, apparently libreadline | |
# can just be preloaded when running PHP: |
A biblioteca define uma série de
módulos
para buscar dentro da variável window['webpackJsonp']
,
que é o output do Webpack.
A cada 100ms o código
<?php | |
namespace App\Services; | |
use Exception; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Exception\ClientException; | |
use GuzzleHttp\Exception\RequestException; | |
use Psr\Http\Message\ResponseInterface; | |
use Illuminate\Support\Facades\Storage; |
/** | |
* Mutual-exclusion lock acquired through a promise. Based on: | |
* https://thecodebarbarian.com/mutual-exclusion-patterns-with-node-promises | |
*/ | |
class Lock { | |
constructor(timeout = 0) { | |
this._meta = null | |
this._token = null | |
this._locked = false | |
this._timeout = parseInt(timeout) || 0 |
// Pending promises | |
let execs = [] | |
// Timeouts waiting to run | |
let timeouts = [] | |
const exec = (func, ...args) => { | |
const promise = func(...args).finally(() => { | |
// Cleanup after the promise settled (resolved or rejected) | |
execs = execs.filter((el) => el !== promise) | |
}) |
#!/bin/sh | |
# Command line variables | |
HOST=${1:-127.0.0.1} | |
PORT=${2:-4422} | |
# Test PORT | |
nc -z -w 5 127.0.0.1 ${PORT} | |
if [ $? -eq 0 ]; then | |
echo "Port ${PORT} in use, choose a different one" |
/** | |
* Reads the entire response body and process based in the Content-Type header | |
* https://developer.mozilla.org/en-US/docs/Web/API/Body | |
* | |
* @param {object} response A response from a fetch request | |
* @param {boolean} arrayBuffer When body can't be processed to `text`, | |
* `json`, or `form-data`, process it to an ArrayBuffer or a Blob (default) | |
* | |
* @return {Promise} A promise that resolves after the entire body is processed | |
*/ |
// TODO: Fix the end-case scenario where the FINAL_OP_PT is the last operation the Pool did | |
package main | |
import ( | |
"os" | |
"fmt" | |
"log" | |
"time" | |
"strconv" |