Skip to content

Instantly share code, notes, and snippets.

@scriptdev
scriptdev / .php
Last active April 19, 2024 13:20
MOSTRAR COR NA COLUNA DO DATAGRID
<?php
$column_situacao->setTransformer(function($value, $object, $row)
{
$html = "<span style = 'height:20px;width: 20px; background-color:". $value .";border-radius: 50%;display: inline-block;'></span>";
$div = new TElement('div');
$div->add($html);
return $div;
@aamiaa
aamiaa / CompleteMokokoQuest.md
Last active April 19, 2024 13:19
Complete Discord Mokoko Quest

Complete Discord Mokoko Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@scriptdev
scriptdev / .css
Created September 7, 2022 04:35
TÍTULO DO FORMULÁRIO EM MAIÚSCULO
.panel-title.card-title {
text-transform: uppercase !important;
}
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:17
PEGAR O VALOR DO PARÂMETRO NO MÉTODO onShow
<?php
# PASSANDO O PARÂMETRO "VALOR"
$parametros = array(
'telefone' => '(83) 98655-6461',
'mensagem' => 'Olá Mundo'
);
TApplication::loadPage('Formulario', 'onShow', $parametros);
@scriptdev
scriptdev / .html
Created September 13, 2022 00:10
info-box
<!--[main]-->
<div class="info-box">
<span class="info-box-icon bg-{$background}">
<i class="fa fa-{$icon}" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<a href="{{URL}}" target="_blank"><span class="info-box-text">{$title}</span></a>
<span class="info-box-number">{$value}</span>
</div>
@hofmannsven
hofmannsven / README.md
Last active April 19, 2024 13:17
Git CLI Cheatsheet
@scriptdev
scriptdev / .php
Created September 13, 2022 02:19
ABRIR ARQUIVO NO DATAGRID
<?php
public function __construct($param = null)
{
parent::__construct();
$action_onArquivo = new TDataGridAction(array('PessoaList', 'onArquivo'));
$action_onArquivo->setUseButton(true);
$action_onArquivo->setButtonClass('btn btn-default btn-sm');
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:16
BMyComponent - GOOGLE MAPS E GEOLOCALIZAÇÃO
/*
Crie os arquivos PHP Component,PHP Service e um arquivo JavaScript para usar o Google Maps
* Geolocalização
Crie um PHP Service para a buscar as coordenadas no Google, este serviço tem uma
função a ser chamada de qualquer lugar necessário.
Código do PHP Service:
*/
@scriptdev
scriptdev / .css
Last active April 19, 2024 13:16
OCULTAR LINK DE PÁGINAS PÚBLICAS ( LOGIN )
/* TEMPLATE ADMINLTE 2 e ADMINBSB (MATERIAL DESIGN) */
div a{
display: none !important;
}
/* TEMPLATE ADMINLTE 3 */
#wrapper div a {
display: none !important;
}