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 | |
// save this file as ./app/Helpers/Remember.php | |
namespace App\Helpers { | |
class Remember | |
{ | |
public static array $that = []; | |
} |
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 | |
// routes/web.php | |
Route::get('lang/{lang}', function ($lang) { | |
session()->put('current_lang', $lang); | |
return redirect(url()->previous()); | |
}); | |
// app/providers/Filament/AdminPanelProvider.php |
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 | |
namespace Adianti\Database; | |
use Adianti\Core\AdiantiCoreTranslator; | |
use Adianti\Database\TConnection; | |
use Adianti\Log\TLogger; | |
use Adianti\Log\TLoggerSTD; | |
use Adianti\Log\TLoggerTXT; | |
use Adianti\Log\AdiantiLoggerInterface; |
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
Adianti.registerState = false; | |
if (typeof history.replaceState != 'undefined') { | |
var baseurl = window.location.pathname.replace(/index\.php.*/,''); | |
var stateObj = { url: baseurl }; | |
history.replaceState(stateObj, '', baseurl); | |
} |
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
:root | |
{ | |
--botao-primario-fundo: #1a3460 !important; | |
--botao-primario-borda: #1a3460; | |
--botao-primario-texto: #fff; | |
--botao-primario-fundo-foco: #1a3460 !important; | |
--botao-primario-borda-foco: #fd9203; | |
--botao-borda-foco: #fd9203; | |
--campo-fundo-foco: #ffdfb4; | |
--text-color: #333; |
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 | |
// adicione estas funções no arquivo init.php | |
// uso: d($argumento1, $argumento2, ...); | |
// https://github.com/renatofrota | |
// dump | |
function d(...$args) | |
{ | |
$bt = debug_backtrace(); |
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 | |
/** | |
* @woo_custom_search | |
* @param string $search_fields | |
*/ | |
function woo_custom_search( $search_fields ) { | |
$search_fields[] = 'Método de pagamento'; | |
return $search_fields; | |
} | |
add_filter( 'woocommerce_shop_order_search_fields', 'woo_custom_search' ); |
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 | |
# https://bit.ly/chrome-os-install-sh | |
# Script to deploy Chrome OS (using Brunch Framework) | |
# Author renatofrota: https://github.com/renatofrota/ | |
# Brunch Framework: https://github.com/sebanc/brunch/ | |
deployed() { | |
echo "Deployment complete. Install script by Renato Frota. Donate:" | |
echo "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R58RLRMM8YM6U" | |
xdg-open "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R58RLRMM8YM6U" | |
} |
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 | |
class SuaPagina extends TPage | |
{ | |
private $form; // form | |
private $datagrid; // listing | |
private $pageNavigation; | |
private $loaded; | |
private $filter_criteria; | |
private static $database = 'seubanco'; |
NewerOlder