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 | |
$query = array( | |
'post_type' => 'servicos', | |
'post_status' => 'published', | |
'order' => 'ASC', | |
'orderby' => 'title', | |
'meta_query' => array( | |
array( | |
'key' => '_thumbnail_id', |
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
/** | |
* Carrega previamente lista de filiais | |
* Gera a tabela: Filiais | |
*/ | |
// Número de filiais | |
Let vFilialCount = NoOfRows(Filiais); | |
For i = 0 to $(vFilialCount) - 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
git config --global alias.st "status -s -b" | |
git config --global alias.di "diff" | |
git config --global alias.co "checkout" | |
git config --global alias.ci "commit" | |
git config --global alias.br "branch" | |
git config --global alias.l "log --online --decorate --graph" | |
git config --global alias.fixup "commit --amend -C HEAD" | |
git config --global alias.timeline "log --graph --branches --pretty=online --decorate" | |
git config --global alias.untracked-files "ls-files -o --exclude-standard" | |
git config --global alias.ignored-files "ls-files --others -i --exclude-standard" |
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
// jQuery Meio Mask | |
$('#celular').setMask("(99) 9999-99999").ready(function(event) { | |
var target, phone, element; | |
target = (event.currentTarget) ? event.currentTarget : event.srcElement; | |
phone = target.value.replace(/\D/g, ''); | |
element = $(target); | |
element.unsetMask(); | |
if(phone.length > 10) { | |
element.setMask("(99) 99999-9999"); | |
} else { |
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 | |
// Process a single image ID (this is an AJAX handler) | |
function ajax_process_image() { | |
@error_reporting( 0 ); // Don't break the JSON result | |
header( 'Content-type: application/json' ); | |
$id = (int) $_REQUEST['id']; | |
$image = get_post( $id ); |
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
[producao] | |
SourcePath=C:\Protheus11\APO | |
RootPath=C:\Protheus_Data | |
StartPath=\system\ | |
x2_path= | |
RpoDb=dbf | |
RpoLanguage=portuguese | |
RpoVersion=110 | |
LocalFiles=ads | |
Trace=0 |
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 | |
$list_cidades = array('' => ''); | |
$this->FilterResults->addFilters( | |
array( | |
'filter_estado' => array( | |
'Table.id_estado' => array( | |
'select' => $this->FilterResults->select('Estado', $this->Table->Estado->find('list')) | |
) |
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
// jQuery Masked Input | |
$('#celular').mask("(99) 9999-9999?9").ready(function(event) { | |
var target, phone, element; | |
target = (event.currentTarget) ? event.currentTarget : event.srcElement; | |
phone = target.value.replace(/\D/g, ''); | |
element = $(target); | |
element.unmask(); | |
if(phone.length > 10) { | |
element.mask("(99) 99999-999?9"); | |
} else { |
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
// jQuery Masked Input | |
$('#telefone').mask("(99) 9999-9999"); | |
// jQuery Meio Mask | |
$('#telefone').setMask("(99) 9999-9999"); |
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 | |
// Seleciona todos os posts publicados | |
$query = new WP_query( | |
array( | |
'post_type' => 'post', | |
'post_status' => 'publish', | |
'title_like' => 'Treinamento%' | |
) | |
); |