- XDebug v3+ inside Docker (e.g. php:7.3-apache Docker image)
- Running Docker v20.10+
- VSCode with PHP Debug Extension (Felix Becker)
- Using Docker Compose for orchestration
This file contains hidden or 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 | |
# EXEMPLO DE USO: | |
$xml = new ImportarXMLNotaFiscal($arquivo_xml); | |
$dest = $xml->getIde(); | |
$emit = $xml->getEmitente(); | |
class ImportarXMLNotaFiscal | |
{ |
This file contains hidden or 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 | |
// Bruno Constantino 12-09-2022 | |
/* | |
Crie uma Nova Ação no Cabeçalho; | |
Defina o nome da variável como "btnShowColumns"; | |
Defina a Variável com escopo a nivel de classe como SIM; | |
Defina como método estático; | |
Defina o método como "onShowColumnsFilters"; | |
Copie os trechos de código abaixo em seus respectivos locais definidos no Adianti Builder; |
This file contains hidden or 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 | |
## ADICIONAR ANTES DO parent::add($container);########################## | |
TScript::create( | |
"$(document).on('keydown', 'input[name=\'celular\']', function (e) { | |
var digit = e.key.replace(/\D/g, ''); | |
var value = $(this).val().replace(/\D/g, ''); | |
var size = value.concat(digit).length; | |
$(this).mask((size <= 10) ? '(00) 0000-0000' : '(00) 00000-0000'); |
This file contains hidden or 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
version: '3.7' | |
# Networks | |
networks: | |
# Internal network | |
internal: | |
driver: bridge | |
# Volumes | |
volumes: |
This file contains hidden or 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
/** | |
* Grid 4 PHP Framework | |
* | |
* @author Abu Ghufran <[email protected]> - https://www.gridphp.com | |
* @version 3 | |
* @date 09-Aug-2024 | |
* @license: see license.txt included in package | |
*/ | |
/* |
This file contains hidden or 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
DROP FUNCTION IF EXISTS proper; | |
SET GLOBAL log_bin_trust_function_creators=TRUE; | |
DELIMITER | | |
CREATE FUNCTION proper( str VARCHAR(128) ) | |
RETURNS VARCHAR(128) | |
BEGIN | |
DECLARE c CHAR(1); | |
DECLARE s VARCHAR(128); | |
DECLARE i INT DEFAULT 1; | |
DECLARE bool INT DEFAULT 1; |
This file contains hidden or 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
#!/usr/bin/env zsh | |
# -*- coding: UTF8 -*- | |
# Author: Guillaume Bouvier -- [email protected] | |
# https://research.pasteur.fr/en/member/guillaume-bouvier/ | |
# 2017-08-25 14:59:30 (UTC+0200) | |
usage () | |
{ | |
echo "Usage" |
This file contains hidden or 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
DROP FUNCTION IF EXISTS fn_remove_accents; | |
DELIMITER | | |
CREATE FUNCTION fn_remove_accents( textvalue VARCHAR(10000) ) RETURNS VARCHAR(10000) | |
BEGIN | |
SET @textvalue = textvalue COLLATE utf8_general_ci;; | |
-- ACCENTS | |
SET @withaccents = 'ŠšŽžÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝŸÞàáâãäåæçèéêëìíîïñòóôõöøùúûüýÿþƒ'; |
NewerOlder