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
#include "DHT.h" | |
#include <EtherSia.h> | |
EtherSia_ENC28J60 ether(8); | |
HTTPServer http(ether); | |
DHT dht(3, DHT11); | |
#define Buzzer 5 | |
#define Diode 4 | |
volatile boolean |
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
#include <iostream> | |
#include "calculator.h" | |
bool isOperator(const char & check){ | |
switch(check){ | |
case '+': | |
case '-': | |
case '*': | |
case '/': |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from bs4 import BeautifulSoup | |
import re | |
import csv | |
import urllib3 | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
class Spider: | |
def __init__(self, url): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
std::string Cipher::vigenereCipher(std::string & contentToEncrypt){ | |
std::string encrypted, | |
key = makeVigenereKey(contentToEncrypt); | |
for(int i = 0, j = 0; i < contentToEncrypt.length(); i++){ | |
char checkChar = contentToEncrypt[i]; | |
if(checkChar >= 'a' && checkChar <= 'z') | |
checkChar += 'A' - 'a'; | |
else if(checkChar < 'A' || checkChar > 'Z') | |
continue; | |
encrypted += (checkChar += key[j] - 2*'A') % 26 + '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
void search(std::vector<std::string> & files, const fs::path &dirRoot){ | |
if(!fs::exists(dirRoot) || !fs::is_directory(dirRoot)) | |
return; | |
fs::recursive_directory_iterator it(dirRoot); | |
fs::recursive_directory_iterator end; | |
while(it != end){ | |
if(fs::is_regular_file(*it) && it->path().extension() == ".txt") | |
files.push_back(it->path().string()); | |
it++; | |
} |
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
std::string WordsCounter::getFileContent(std::ifstream & file){ | |
std::string data; | |
data.assign(std::istreambuf_iterator<char>(file), | |
std::istreambuf_iterator<char>()); | |
return data; | |
} |
NewerOlder