Skip to content

Instantly share code, notes, and snippets.

View cupertinobr's full-sized avatar

Rodolfo Cupertino cupertinobr

View GitHub Profile
@cupertinobr
cupertinobr / .php
Created September 11, 2023 18:52 — forked from fayqLs/.php
IMPRESSÃO TÉRMICA ( ESC/POS Print for PHP ) Mike42
<?php
# https://github.com/mike42/escpos-php
# composer: mike42/escpos-php
use Mike42EscposPrinter;
use Mike42EscposEscposImage;
use Mike42EscposImagickEscposImage;
use Mike42EscposPrintConnectorsFilePrintConnector;
use Mike42EscposPrintConnectorsWindowsPrintConnector;
@cupertinobr
cupertinobr / download-from-undraw.py
Created June 26, 2023 12:33 — forked from heypoom/download-from-undraw.py
Download every svg file from undraw.
#!/usr/bin/env python3
import os
import json
import requests
from multiprocessing.pool import ThreadPool
def build_index():
page = 1
urls = []
@cupertinobr
cupertinobr / .php
Last active April 22, 2023 11:26
Add texto no footer - addFooterWidget
<?php
....
//Adicionar um texto ao footer do form
$addText = new TTextDisplay(FormService::getByAndAt($object), 'gray', 10, 'i');
$this->form->addFooterWidget($addText);
@cupertinobr
cupertinobr / .php
Last active December 16, 2022 19:56
Enviar seleção de dados para um Select2
<?php
public static function onChangeProduto($param = null)
{
try
{
//code here
if(!empty($param['key']))
{
//code here