show dbs
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 | |
class IFrameExemplo extends TWindow | |
{ | |
public function __construct() | |
{ | |
parent::__construct(); | |
parent::setSize(950, null); | |
parent::setTitle("IFrameExemplo"); | |
parent::setProperty('class', 'window_modal'); |
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 | |
require('fpdf.php'); | |
class PDF extends FPDF | |
{ | |
var $widths; | |
var $aligns; | |
function SetWidths($w) |
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
--- | |
UseTab: Never | |
TabWidth: '4' | |
IndentWidth: '4' | |
BasedOnStyle: Google | |
AccessModifierOffset: -4 | |
ColumnLimit: 100 | |
NamespaceIndentation: All | |
IndentPPDirectives: BeforeHash | |
FixNamespaceComments: false |
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 Funcao | |
{ | |
public static function Mascara($mascara, $valor) | |
{ | |
$valor = str_replace(" ", "", $valor); | |
for ($i = 0; $i < strlen($valor); $i++) { | |
$mascara[strpos($mascara, "#")] = $valor[$i]; |
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
/* | |
*** Academy Engraved LET *** | |
AcademyEngravedLetPlain | |
--------------------- | |
*** Al Nile *** | |
AlNile | |
AlNile-Bold | |
--------------------- | |
*** American Typewriter *** | |
AmericanTypewriter |
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 | |
$empresa = SystemUnit::where('cnpj','=',$param['cnpj'])->first(); | |
if ($empresa) | |
{ | |
$object = new StdClass; | |
$object = (object) $empresa; | |
TForm::sendData(self::$formName, $object); | |
} |
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 | |
$campo->enableIdTextualSearch(); |
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 | |
# PRIMEIRO | |
$primeiro = Cliente::first(); | |
TApplication::loadPage('ClienteForm','onEdit', ['key' => $primeiro->id]); | |
# ANTERIOR | |
$id = (int) $param['key'] - 1; | |
TApplication::loadPage('ClienteForm','onEdit', ['key' => $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
#!/bin/sh | |
# | |
# Automatically adds Jira key to commit message | |
# | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) |
NewerOlder