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
// Codigo feito por Pedro Tashima, com inspiracao no de Abhrodeep Chanda (https://www.youtube.com/channel/UCzW9WY9u_T-Xdsd2TKIvfmw) | |
#include <ESP8266WiFi.h> | |
#include <ESP_Notify.h> | |
// define as variaveis | |
long duracao; | |
int distancia; | |
int distanciasegura; | |
//definindo wifi | |
const char* ssid ("SEU_SSID"); //SSID da sua rede (0 nome dela) | |
const char* pswd ("SUA_SENHA"); //Senha da sua rede |
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
/* Codigo feito por Pedro Tashima (@Tashima42) | |
* Regador e Datta Logger automatico de plantas*/ | |
#include "DHT.h" //biblioteca para o leitor de umidade e temperatura DHT11 | |
#include <DS3231.h> //biblioteca para o relogio RTC | |
#include <SPI.h> //biblioteca para o SD | |
#include <SD.h> //biblioteca para o SD | |
#define pinoDht 9 // PINO digital em que o DT11 esta conectado |
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 <DS3231.h> | |
int Relay = 4; | |
DS3231 rtc(SDA, SCL); | |
Time t; | |
const int OnHour = 12; | |
const int OnMin = 24; | |
const int OffHour = 12; |
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 React from 'react'; | |
import Menu from './components/Menu/' | |
import dadosIniciais from './data/dados_iniciais.json' | |
import BannerMain from './components/BannerMain' | |
import Carousel from './components/Carousel' | |
import Footer from './components/Footer' | |
function App() { | |
return ( | |
<div style={{background: '#141414'}}> |
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
/** | |
* Secure Hash Algorithm (SHA256) | |
* http://www.webtoolkit.info/ | |
* | |
* Original code by Angel Marin, Paul Johnston. | |
* Modified by Pedro Tashima (@tashima42) | |
**/ | |
function SHA256(s) { | |
const chrsz = 8; | |
const hexcase = 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
{ | |
"sortingAlgorithms": [ | |
{ | |
"id": "ordenacao-1", | |
"subject": "Algoritmos de ordenação", | |
"text": "\nQuantas trocas são necessárias para que a sequência abaixo seja ordenada de modo crescente?\n```\n{sequencia=1:10:{6:10}}\n```\nUtilize o seguinte método de ordenação:\n```\n{metodo}\n```\n<metodo>\n <sort value=\"bubble\">void bubbleSort(int arr[], int n)</sort>\n <sort value=\"selection\">void selectionSort(int arr[], int n)</sort>\n <sort value=\"insertion\">void insertionSort(int arr[], int n)</sort>\n</metodo>\n---\nAlguma dúvida? Consulte a referência para esta questão [aqui](http://google.com.br).\n ", | |
"answer": "function (values, blocks) {\n const arr = [...values.sequencia];\n const metodo = blocks.metodo;\n const resp = [];\n let swapCounter = 0;\n\n switch (metodo) {\n case 'bubble':\n let swapped;\n\n do {\n swapped = false;\n\n for (let i = 0; i < arr.length; i++) {\n if (arr[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
// Autor: Pedro Henrique Mateus Tashima | |
// RA: 2145200 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <ctype.h> | |
#include <time.h> | |
#define name_length 1000 |
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
function createHeader(title, description, link, lastBuildDate, managingEditor) { | |
return `<title>${title}</title> | |
<description>${description}</description> | |
<link>${link}</link> | |
<lastBuildDate>${lastBuildDate}</lastBuildDate> | |
<managingEditor>${managingEditor}</managingEditor>` | |
} | |
function createItem(title, link, guid, pubDate, description) { | |
return `<item> | |
<title>${title}</title> |
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
<rss version="2.0"> | |
<channel> | |
<title>Uptime Bot</title> | |
<description>Uptime Bot</description> | |
<link>https://uptimebot.com</link> | |
<lastBuildDate>Fri, 17 Jun 2022 22:13:16 GMT</lastBuildDate> | |
<managingEditor>contact@uptimebot.com UptimeBot Team</managingEditor> | |
<item> | |
<title>Downtime on Service 1</title> | |
<link>https://uptimebot.com/events/1</link> |
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
diff --git a/.drone.yml b/.drone.yml | |
index 210284df7..efda8b916 100644 | |
--- a/.drone.yml | |
+++ b/.drone.yml | |
@@ -1128,6 +1128,7 @@ steps: | |
secret_key: | |
from_secret: optimus_charts_secret_key | |
source: bin/chart/**/* | |
+ strip_prefix: bin/chart/ | |
target: /server-charts |