English manual for the ZUOYA GMK67 Mechanical Keyboard. Made from the printed version (Original).
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
<?php | |
echo floor(5.3); # RETORNO 6 |
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 | |
$estado_id = new TDBCombo('estado_id', 'bd_condominio', 'Estado', 'id', '{descricao}','descricao asc'); | |
$btn_adicionar_cidade = new TButton('btn_adicionar_cidade'); | |
$btn_adicionar_cidade->setImage('fas:plus-circle #000000'); | |
$btn_adicionar_cidade->addStyleClass('btn-default'); | |
# CAPTURA O ID DO ESTADO E ENVIA POR PARÂMETRO NA AÇÃO | |
$btn_adicionar_cidade->setAction(new TAction(['CadastroCidadeForm', 'onShow'],['estado_id' => 'estado_id']),""); |
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 | |
public static function onFormatarTelefone($numero) | |
{ | |
$numero = ltrim($numero, '0'); # remove o zero a esquerda | |
$tamanho = strlen(preg_replace("/[^0-9]/", "", $numero)); # calcula o tamanho | |
if ($tamanho == 10) | |
{ |
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 | |
$cep = '58.458-500'; | |
$cep = str_replace(['-','.'], ['', ''], $cep); | |
echo $cep; | |
# RESULTADO: 58458500 |
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
#!/bin/bash | |
# Author: Casper Pedersen (github.com/casperghst42) | |
# License: GPL2 | |
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2 | |
virt-customize -a debian-12-generic-amd64.qcow2 --install qemu-guest-agent --install resolvconf --install systemd-resolved --update --run-command 'mkdir -p /etc/network/interfaces.d' --run-command 'echo "auto ens18" >> /etc/network/interfaces.d/ens18' --run-command 'echo "iface ens18 inet manual" >> /etc/network/interfaces.d/ens18' | |
qm create 100000 --name "debian12-cloudinit-template" --memory 2048 --net0 virtio,bridge=vmbr0 | |
qm importdisk 100000 debian-12-generic-amd64.qcow2 local-lvm -format qcow2 |
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 | |
# EXEMPLO DE USO: | |
$xml = new ImportarXMLNotaFiscal($arquivo_xml); | |
$dest = $xml->getIde(); | |
$emit = $xml->getEmitente(); | |
class ImportarXMLNotaFiscal | |
{ |
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
SELECT | |
CASE MONTH(contas_receber.dt_pagamento) | |
WHEN 1 THEN CONCAT("JAN/", YEAR(contas_receber.dt_pagamento)) | |
WHEN 2 THEN CONCAT("FEV/", YEAR(contas_receber.dt_pagamento)) | |
WHEN 3 THEN CONCAT("MAR/", YEAR(contas_receber.dt_pagamento)) | |
WHEN 4 THEN CONCAT("ABR/", YEAR(contas_receber.dt_pagamento)) | |
WHEN 5 THEN CONCAT("MAI/", YEAR(contas_receber.dt_pagamento)) | |
WHEN 6 THEN CONCAT("JUN/", YEAR(contas_receber.dt_pagamento)) | |
WHEN 7 THEN CONCAT("JUL/", YEAR(contas_receber.dt_pagamento)) | |
WHEN 8 THEN CONCAT("AGO/", YEAR(contas_receber.dt_pagamento)) |
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 | |
$preco = TNumeric($object->preco, '2', ',', '.', true, true); |
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 | |
$css = ' | |
.container-part[page-name=ProdutoForm] { | |
left: 0; | |
float: left !important; | |
box-shadow: -25px 10px 50px 0px rgb(0 0 0 / 85%); | |
} | |
'; |
NewerOlder