Skip to content

Instantly share code, notes, and snippets.

@scriptdev
scriptdev / .php
Created October 4, 2022 19:55
GERAR GRÁFICO DE BARRAS C3.js VIA HTML
<?php
$c3_bar_chart = new THtmlRenderer('app/resources/c3_bar_chart.html');
$c3_bar_chart->enableSection('main', [
'data'=> json_encode($data),
'height' => 300,
'precision' => 0,
'decimalSeparator' => ',',
'thousandSeparator' => '.',
'prefix' => 'R$ ',
@scriptdev
scriptdev / .php
Created October 8, 2022 05:16
CRIAR Breadcrumb
<?php
TBreadCrumb::create(['CADASTROS', 'CLIENTE'], true));
@iuliandita
iuliandita / alacritty.toml
Last active April 19, 2024 13:08
Alacritty TOML config file, with all defaults present (commented out), in the proper order. Color scheme is Catpuccin Mocha.
# alacritty.toml
# commented lines are the defaults
# man 5 alacritty (>0.13) for full config manual
#import = [
#"~/.config/alacritty/catpuccin-mocha.toml",
#"~/.config/alacritty/keybindings.toml",
#]
[shell]
@scriptdev
scriptdev / .php
Created October 8, 2022 05:44
CAMPO OBSERVAÇÃO NO RELATÓRIO TPDFDesigner ( ADIANTI STUDIO )
<?php
$designer->gotoAnchorXY('observacao');
$largura = 585;
$altura = 15;
$borda = 1;
$align = 'L';
$fill = FALSE;
$observacao = strip_tags($object->observacao); # REMOVE AS TAGs HTML
@wyhasany
wyhasany / README.md
Last active April 19, 2024 13:08
Wine configuration for QTranslate under Linux/MacOS

QTranslate for Linux

This is tutorial how to run awesome application to context translation: QTranslate The authors write on the site that they don't plan to support QTranslate for other platforms than Microsoft Windows. I felt a lack similiar solution at Linux. So I've tried to run that application at Linux Ubuntu distribution. On the end that's works I really appreciate all the help which I received at winehq forum.

Installation

@scriptdev
scriptdev / .php
Created October 8, 2022 05:50
ADICIONAR HTML NO RELATÓRIO TPDFDesigner "writeHTML" ( ADIANTI STUDIO )
<?php
$designer->gotoAnchorXY('nome_ancora');
$designer->writeHTML( $designer->getX(), $designer->getY(), '<p> <b>CONSULTORIA:</b> WHATSAPP (83) 98655-6461</p>' );
@scriptdev
scriptdev / .php
Created October 8, 2022 06:06
EXEMPLO RELATÓRIO TPDFDesigner ( ADIANTI STUDIO )
<?php
function onGerarRelatorio()
{
try
{
TTransaction::open(self::$database);
$repository = new TRepository('Pedido');
$criteria = new TCriteria;
$pedidos = $repository->load($criteria);
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:07
ATUALIZAR LISTA AUTOCOMPLETE TDBEntry
<?php
public static function onSituacao($param)
{
$situacao = $param['key'];
if($situacao)
{
TTransaction::open(self::$database);
@scriptdev
scriptdev / .txt
Created October 10, 2022 23:18
TAMANHO A4 em PIXEL
TAMANHO 72 PPI 96 PPI
A4 595 x 842 794 x 1123