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
| SELECT u.ID, u.user_login, u.user_nicename, u.user_email | |
| FROM wp_users u | |
| INNER JOIN wp_usermeta m ON m.user_id = u.ID | |
| WHERE m.meta_key = 'billing_rg'!=''; |
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
| # pip install fordev | |
| from fordev.generators import people | |
| searching_valid_cep = True | |
| print('Aguarde, estou gerando dados de um cliente fantasma na cidade de São Paulo...') | |
| while(searching_valid_cep) : | |
| new_people = people(uf_code='SP') | |
| if (new_people.get('cidade') == 'São Paulo') : |
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
| var $i = 1; | |
| idea.keywords.forEach(function ( keyword ) { | |
| if ( $i < idea.keywords.length ) { | |
| this.keywords += keyword.text + ", "; | |
| } else { | |
| this.keywords += keyword.text + "."; | |
| } | |
| $i++; | |
| }); |
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 | |
| // | |
| // Horário Bool - Função que retorna true ou false mediante o horário da requisição. | |
| // | |
| function horario_bool () { | |
| $dias_da_semana = [ | |
| 'Monday', |
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
| var carrinho = (function () { | |
| Vue.component('carrinho-item', { | |
| props: ['thumbnail', 'preco'], | |
| template: ` | |
| <li class="carrinho-item"> | |
| <figure class="carrinho-thumb"> | |
| <img :src="thumbnail"> | |
| </figure> | |
| <a class="carrinho-title" href="#"><slot></slot></a> |
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
| <!DOCTYPE html> | |
| <html lang="pt-br"> | |
| <head> | |
| <title>RPG</title> | |
| <meta charset="utf-8"> | |
| <style media="screen"> |
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
| <!DOCTYPE html> | |
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Lista de contatos</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"> | |
| <style media="screen"> | |
| #vueroot{ |
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 | |
| function get_filtered_terms ( $post_type, $taxonomy, $tax_query = 0, $meta_query = 0 ) { | |
| //Filtra os posts de acordo com a filtragem passada | |
| $args = [ | |
| "post_type" => $post_type, | |
| "posts_per_page" => -1, | |
| ]; | |
| if ( $tax_query ) { |
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 | |
| //wp_is_ipad vai em functions.php | |
| function wp_is_ipad ( ) { | |
| if( strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') ) { | |
| return true; | |
| } else{ | |
| return false; | |
| } | |
| } |