Skip to content

Instantly share code, notes, and snippets.

View pdrolima's full-sized avatar

Pedro pdrolima

  • Up Budget
  • Sao Paulo, Brazil
  • 16:25 (UTC -03:00)
View GitHub Profile
const response = await this.wooviRequest('POST', '/subscriptions', {
name: `finl ${plan.name} — ${params.billingCycle === 'yearly' ? 'Anual' : 'Mensal'}`,
value: amount,
correlationID,
type: 'PIX_RECURRING',
dayGenerateCharge: dayOfMonth,
dayDue: 7,
comment: `finl ${plan.name} — ${params.billingCycle === 'yearly' ? 'Anual' : 'Mensal'}`,
frequency: params.billingCycle === 'yearly' ? 'ANNUALLY' : 'MONTHLY',
customer: {
@pdrolima
pdrolima / react-state.md
Created September 23, 2025 21:04
Effective React State Management
@pdrolima
pdrolima / exemplo.php
Last active April 1, 2017 17:09
Exemplo do Script de Status
<!-- COLOQUE NO TOPO DA INDEX DO SEU SITE -->
<?php
require_once("status-server.php");
$serverStatus = new ServerStatus();
?>
<!-- COLOQUE NA PARTE DE STATUS DO SEU SITE, SE JÁ EXISTE O TEXTO, REMOVA-O -->
<?php
echo "Status do servidor: $serverStatus->server_is_online <br />"; // Retorna se o servidor está online ou offline
echo "Contas registradas: $serverStatus->registered_accounts <br />"; // Retorna o número de contas cadastradas
<?php
/*
* @author Pedro
*/
$host = "localhost";
$user = "root";
$pass = "";
$banco = "gc";