Skip to content

Instantly share code, notes, and snippets.

View diogenesjup's full-sized avatar
🏠
Working from home

Diogenes Oliveira Junior diogenesjup

🏠
Working from home
View GitHub Profile
This file has been truncated, but you can view the full file.
Running with gitlab-runner 14.10.1 (f761588f)
on Ionic Package Android Runner 8edcfcad
Preparing the "kubernetes" executor
Using Kubernetes namespace: ionic-runners
Using Kubernetes executor with image 319312831725.dkr.ecr.us-west-2.amazonaws.com/appflow-runners/linux:2023.10 ...
Using attach strategy to execute scripts...
Preparing environment
Waiting for pod ionic-runners/runner-8edcfcad-project-0-concurrent-15qlm2 to be running, status is Pending
Running on runner-8edcfcad-project-0-concurrent-15qlm2 via gitlab-runner-5cd9bd7bf6-z82g8...
This file has been truncated, but you can view the full file.
Running with gitlab-runner 14.10.1 (f761588f)
on Ionic Package Android Runner 8edcfcad
Preparing the "kubernetes" executor
Using Kubernetes namespace: ionic-runners
Using Kubernetes executor with image 319312831725.dkr.ecr.us-west-2.amazonaws.com/appflow-runners/linux:2023.10 ...
Using attach strategy to execute scripts...
Preparing environment
Waiting for pod ionic-runners/runner-8edcfcad-project-0-concurrent-8jt24t to be running, status is Pending
Running on runner-8edcfcad-project-0-concurrent-8jt24t via gitlab-runner-5cd9bd7bf6-z82g8...
@diogenesjup
diogenesjup / declare.php
Created June 11, 2024 18:14
Variavel padrão para AJAX e outras chamadas JavaScript da plataforma BETWP
<script>
const homeUrl = "<?php echo get_option('home'); ?>";
</script>
@diogenesjup
diogenesjup / watis-api.js
Created May 22, 2024 13:19
WATIS API NODE
var request = require('request');
var options = {
'method': 'POST',
'url': 'SEU ENDPOINT',
'headers': {
'Content-Type': 'application/x-www-form-urlencoded'
},
form: {
'origem': 'postman',
'destino': '5511999999999',
@diogenesjup
diogenesjup / exemplo.php
Last active May 22, 2024 13:17
Exemplo PHP CURL WATIS API
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'SEU ENDPOINT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
@diogenesjup
diogenesjup / exemplo.json
Created February 2, 2024 18:40
Exemplo de JSON da API plugin afiliados
{
"status":"sucesso",
"info":{
"pedidos_processando_concluido":[
{
"ID pedido":2518,
"Nome Cliente":"Diogenes Junior",
"E-mail Cliente":"[email protected]",
"Valor do pedido":"90.00",
"Valor do pedido elegível para comissão":55,
@diogenesjup
diogenesjup / functions.php
Created December 20, 2023 15:17
Mudar status para processando automáticamente na confirmação do pagamento
<?php
add_action( 'woocommerce_payment_complete', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) {
if ( ! $order_id ) {
return;
}
$order = wc_get_order( $order_id );
// Verifique se o pedido é para produtos digitais
@diogenesjup
diogenesjup / exemplo.html
Created August 24, 2023 14:42
Estrutura HTML Collapse BETWP
<section class="configuracoes__carteira__depositar__card configuracoes__carteira__depositar__card--NOME-DO-SEU-COLLAPSE">
<header class="configuracoes__carteira__depositar__card__header">
<aside>
<i class="fas fa-check"></i>
<h4>NUMERO</h4>
<div>
<h2>TITULO DA ABA</h2>
</div>
</aside>
@diogenesjup
diogenesjup / widgetApostasFlutuantes.php
Last active August 19, 2023 19:46
Widget de Apostas Flutuantes
<?php
/**
* ------------------------------------------------------------------------------------------------
*
*
* CARRINHO / RESUMO FLUTUANTE DAS APOSTAS
*
*
* ------------------------------------------------------------------------------------------------
*/
<?php if(get_field("tempo_de_preparo")!=""): ?>
<p>
<b>Tempo de preparo:</b> <?php echo get_field("tempo_de_preparo") ?>
</p>
<?php endif; ?>
<?php if(get_field("quantidade_de_porcoes")!=""): ?>
<p>
<b>Quantidade de porções:</b> <?php echo get_field("quantidade_de_porcoes") ?>
</p>