Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"_id": "59ada9772bc5be4a37aaa435", | |
"name": "Banco ABC Brasil S.A.", | |
"febraban": true, | |
"clearing": true, | |
"code": "246", | |
"alias": null | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I'll be doing another one for Linux, but this one will give you | |
# a pop up notification and sound alert (using the built-in sounds for macOS) | |
# Requires https://github.com/caarlos0/timer to be installed | |
# Mac setup for pomo | |
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
-title 'Work Timer is up! Take a Break 😊'\ | |
-appIcon '~/Pictures/pumpkin.png'\ | |
-sound Crystal" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# FONTE: https://framework.adianti.me/tutor/index.php?class=PDFDesignNFEView&method=onShow | |
class PDFDesignNFEView extends TPage | |
{ | |
private $form; | |
private $pdf; | |
private $total_produtos; | |
private $total_icms; |
aka what i did to get from nothing to done.
note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$objeto = new stdClass(); | |
$objeto->nome = 'FABRICIO'; | |
$objeto->celular = '(83) 98655-6461'; | |
$objeto->idade = '34'; | |
TForm::sendData(self::$formName, $objeto); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$id = 1; | |
$cliente = Cliente::find($id); | |
if($cliente) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# COM FILTRO | |
$qtd_produtos = Produto::where('grupo', '=', 'BEBIDAS')->count(); | |
# SEM FILTRO, TODOS OS REGISTROS | |
$qtd_produtos = Produto::count(); |
NewerOlder