Meta | Nome | Função |
---|---|---|
. |
ponto | um caractere qualquer |
[] |
conjunto | conjunto de caracteres permitidos |
[^] |
conjunto negado | conjunto de caracteres proibidos |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<math.h> | |
////////////////////////////////////////// | |
// Programa computa formas geometricas | |
// Estudante: Valdinei Franças | |
// Instituição: Universidade Católica de Salvador | |
// Curso: Analise e desenvolvimento de Sistemas | |
// Data: 03/09/2013 | |
////////////////////////////////////////// |
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
#include<stdio.h> | |
#include<stdlib.h> | |
/////////////////////////////////////////////////////////////////////////// | |
// 'gera_numerosPares' função Gera números pares como números impares... | |
////////////////////////////////////////////////////////////////////////// | |
int gera_numerosPares() { | |
/////////////////////////////////// | |
// Variáveis declaradas... |
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
var deletarDados = document.querySelector('#deletar'); | |
deletarDados.onclick = function() { | |
var confirmoDeletar = confirm('Deseja Realmente Deletar?'); | |
if( confirmoDeletar ) { | |
return true | |
} | |
else { |
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
import serial | |
import time | |
ser = serial.Serial('/dev/ttyS0', 115200) | |
def toDecimal(some_string): | |
decimals = [ord(c) for c in some_string] | |
return bytes(decimals) | |
#if not ser.isOpen(): |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#define TamanhoVet 5 // Definindo uma constante... | |
///////////////////////////////////////////////////////// | |
// Algoritimo mostra o maior e o menor valor digitado | |
// Estudante: Valdiney França | |
//////////////////////////////////////////////////////// | |
int main() { | |
float vetor[TamanhoVet], maior = 0, menor = 0; |
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
#include <ESP8266WiFi.h> | |
// Nome do seu wifi | |
const char* ssid = "seu_wifi_nome"; | |
// Senha do seu wifi | |
const char* password = "senha_do_seu_wifi"; | |
// Porta de comunicacao (normalmente se utiliza a 80 ou 8080) | |
WiFiServer server(80); |
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
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
///////////////////////////////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////////////////////////////////////// | |
// YOUR SESSION ID CONFIGURATION | |
#define ID_MQTT " " | |
//////////////////////////////////////////////////////////////////////////////////////////// |
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
// Realiza um disparo via Ajax para o endereço do meu NodeMcu | |
var led_controle = function(status) { | |
var xmlhttp = new XMLHttpRequest(); | |
var set_status = "http://192.168.0.106/?function=" + status; | |
xmlhttp.open("GET", set_status); | |
xmlhttp.send(); | |
} | |
// Acessa os botões e passando as nossas diretivas de ligar ou desligar o led | |
var led = function() { |
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
<a class="buttons ligar">Ligar</a> | |
<a class="buttons desligar">Desligar</a> |
NewerOlder