Skip to content

Instantly share code, notes, and snippets.

View williamokano's full-sized avatar
🎯
println("Kotlin is nice")

William Okano williamokano

🎯
println("Kotlin is nice")
View GitHub Profile
[
{
"id": "6086779176",
"owner": "76561198156679773",
"amount": 1,
"classid": "506854340",
"instanceid": "188530139",
"icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpopuP1FAZu7OHHaDxO7tCzkYS0m_7zO6-fwzNV7scl0ryQrNytjAPsqEBtNmvzIYKSdQE3YgnW-FG3w-3ohpHo7oOJlyXY6CwB5A",
"icon_url_large": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpopuP1FAZu7OHHaDxO7tCzkYS0m_7zO6_ummpD78A_37HF846h0AHl8kNkN277d4WUJwQ-ZFzX_Va3wr_ph5a1vp7OynU36D5iuyj0A1mk7w",
"icon_drag_url": "",
<?php
//mysql_fetch_object
//mysql_num_rows
//mysql_error
//mysql_query
//mysql_insert_id
//mysql_real_escape_string
//mysql_select_db
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM='gnome-256color';
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM='xterm-256color';
fi;
prompt_git() {
COLOR_GIT=${1}
COLOR_BRANCH=${2}
COLOR_ARROW=${3}

Listando recebíveis de uma transação

Descrição

negrito: obrigatório

PARÂMETRO TIPO DESCRIÇÃO EXEMPLO
transactionId integer ID da transação. 32151232
<?php
$handle = fopen ("php://stdin","r");
fscanf($handle,"%d",$n);
$p_temp = fgets($handle);
$p = explode(" ",$p_temp);
array_walk($p,'intval');
$num_stma = 60;
$num_ltma = 300;
#!/bin/python3
import sys
num_stma = 60
num_ltma = 300
min_days = max(num_stma, num_ltma)
n = int(input().strip())
p = list(map(int, input().strip().split(' ')))
float fun(float x)
{
float xhalf = 0.5f * x;
int i = *(int*)&x;
i = 0x5f375a86 - (i >> 1);
x = *(float*)&i;
x = x * (1.5f - xhalf * x * x);
return x;
}
function geraCpf() {
const cpf = [
geraInt(0, 9),
geraInt(0, 9),
geraInt(0, 9),
geraInt(0, 9),
geraInt(0, 9),
geraInt(0, 9),
geraInt(0, 9),
geraInt(0, 9),
<?php
function isPar($num) {
$tmp = number_format($num, 16);
list($int, $dec) = array_map('intval', explode('.', $tmp));
return is_int($int / 2) && count(array_filter(str_split($dec), function ($val) {
return $val > 0;
})) == 0;
}
<!doctype html>
<html>
<head>
<title>Exemplo</title>
</head>
<body>
<?php
$itemsSelect = [
[1, 'William'],
[2, 'Ogro'],