Skip to content

Instantly share code, notes, and snippets.

View wladpaiva's full-sized avatar
🎯
Focusing

Wlad Paiva wladpaiva

🎯
Focusing
View GitHub Profile
@wladpaiva
wladpaiva / docker-compose.yml
Last active July 19, 2024 11:27
docker-compose with mempool and electrum server
version: '3.8'
services:
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
@wladpaiva
wladpaiva / chromatic.yml
Last active July 13, 2023 14:50
turbo-ignore steps on GitHub Action
name: "Chromatic Publish"
on: push
jobs:
# @see https://www.chromatic.com/docs/github-actions#support-for-codeactionscheckoutv2code-and-above
chromatic-deployment:
# Don't need to run if this is a dependency update
# if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
@wladpaiva
wladpaiva / vscode.settings.json
Last active November 20, 2023 17:16
The VSCode Settings I use
{
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
@wladpaiva
wladpaiva / ecletica.test.ts
Created September 23, 2022 13:36
Integracao com o PDV Ecletica em typescript
// Endpoint(produção):
// https://www.pedidoviaweb.com.br/ws/integracao/index.php?metodo=enviaPedido&rede=XXX&loja=XXX
// Endpoint(Homologação):
// https://www.pedidoviaweb.com.br/teste/ws/integracao/index.php?metodo=enviaPedido&rede=XXX&loja=XXX
import {rest} from 'msw'
import {setupServer} from 'msw/node'
import {Ecletica} from './ecletica.server'
@wladpaiva
wladpaiva / securepay_standard_gateway.php
Created June 24, 2016 05:29
Add SecurePay as a payment gateway for the givewp wordpress plugin. You just need to require the securepay_standard_gateway file into your functions.php
<?php
/**
* SecurePay Standard Gateway
*
* @package Give
* @subpackage Gateways
* @copyright Copyright (c) 2016, WordImpress
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0
*/