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
| <!-- Carrossel de Clientes --> | |
| <section> | |
| <div class="container-fluid"> | |
| <div class="container container_section"> | |
| <div class="row"> | |
| <div class="col-xs-12 col-md-offset-1 col-md-10"> | |
| <h2>Nossos <span class="font_title_strong">Clientes</span></h2> | |
| <hr class="separador-azul" /> | |
| </div> |
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
| function carrega_scripts(){ | |
| //Aqui eu estou chamando o bootstrap via CDN, mas você pode só apontar para ele se tiver local. Fiz isso abaixo do Bootstrap com o meu style. | |
| wp_enqueue_style( 'bootstrap-css', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css', array(), '3.3.7', 'all'); | |
| //Mais uma importação do bootstrap via CDN, mas aqui estou importando o JS e dependência do JQuery | |
| wp_enqueue_script( 'bootstrap-js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js', array('jquery'), null, true); | |
| //Carregando meu estilo no projeto | |
| wp_enqueue_style( 'style', get_template_directory_uri() . '../assets/css/style.css', array(), true); |
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
| #Autor:MOA | |
| apt update | |
| apt upgrade | |
| clear | |
| echo "Instalando dependêcias - Passo 1" | |
| apt install clang python-dev python libzmq libcrypt libzmq-dev libcrypt-dev | |
| clear | |
| echo "Instalando o Jupyter - Passo 2" | |
| pip install jupyter | |
| clear |
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 id="UF" name="UF"> | |
| <option value="">Selecione</option> | |
| <option value="AC">AC</option> | |
| <option value="AL">AL</option> | |
| <option value="AP">AP</option> | |
| <option value="AM">AM</option> | |
| <option value="BA">BA</option> | |
| <option value="CE">CE</option> | |
| <option value="DF">DF</option> | |
| <option value="ES">ES</option> |
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
| """ | |
| Aplicando teoria dos conjuntos em listas de emails com Python | |
| Created: 16/04/2019 | |
| @author: Moisés Tedeschi | |
| """ | |
| lista1 = ["eu@mesmo", "moisestedeschi@gmail.com","moatedeschi@gmail.com", "moises.tedeschi@esporte.gov.br"] | |
| # James, corrigi seu nome no e-mail. Não fica chateado (rsrs) | |
| lista2 = ["eu@mesmo", "jamesperes@gmail.com", "moises.tedeschi@esporte.gov.br"] |
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
| import pandas as pd | |
| dataset = pd.read_csv('exemplo.csv') | |
| # Testando dataset | |
| dataset.head() | |
| # Chamar uma linha pelo seu índice | |
| dataset.loc[5] |
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
| st = 'Print only the words that start with s in this sentence' | |
| # Resolvendo de forma normal | |
| new_st_normal = st.split() | |
| for char_normal in new_st_normal: | |
| if char_normal[0] == 's': | |
| print(char_normal) | |
| # Resolvendo com List Comprehensions | |
| new_st = [char for char in st.split() if char[0] == 's'] |
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
| @bot.message_handler(commands=['BuscaCorreios']) | |
| def buscaCorreios(message): | |
| #bot.reply_to(message, f"{emojize('A Função foi chamada com sucesso! :sunglasses: ', use_aliases=True)}") | |
| #Abrindo o Browser. O processo de navegação vai ser visível, pq o valor True está ativo. | |
| web = webbot.Browser(showWindow=True) | |
| #Maxmizar a janela do navegador. | |
| web.maximize_window() |
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
| //Valor que vou informar é: '1010'. | |
| const args = process.argv; | |
| const saldo = args[args.length - 1]; | |
| //console.log(saldo); | |
| //console.log('args', args); | |
| if (isNaN(saldo)) { | |
| console.log('Não é um número válido!!'); | |
| return; |
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
| def soma(x, y): | |
| result = x + y | |
| return result | |
| print(soma(10, 20)) |