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 <string> | |
| #include <stdexcept> | |
| #include <cstdint> | |
| #include <bitset> | |
| #include <sstream> | |
| #include <iomanip> | |
| #include <cctype> | |
| class Byte { |
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 <algorithm> | |
| #include <random> | |
| #include <string> | |
| class PasswordGenerator | |
| { | |
| public: | |
| PasswordGenerator() = default; | |
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 <array> | |
| #include <iostream> | |
| #include <map> | |
| #include <memory> | |
| #include <string> | |
| namespace Global { | |
| const std::array<std::string, 20> namesArray { | |
| "Kiesha", | |
| "Ashlee", |
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 <array> | |
| #include <iostream> | |
| #include <memory> | |
| #include <string> | |
| #include <vector> | |
| namespace Global { | |
| const std::array<std::string, 20> namesArray { | |
| "Kiesha ", | |
| "Ashlee ", |
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 <string_view> | |
| #include <array> | |
| constexpr std::array<std::string_view, 301>fiboAnswers = { | |
| "0", "1", "1", "2", "3", "5", "8", "13", "21", "34", "55", "89", "144", "233", "377", | |
| "610", "987", "1597", "2584", "4181", "6765", "10946", "17711", "28657", "46368", | |
| "75025", "121393", "196418", "317811", "514229", "832040", "1346269", "2178309", | |
| "3524578", "5702887", "9227465", "14930352", "24157817", "39088169", "63245986", | |
| "102334155", "165580141", "267914296", "433494437", "701408733", "1134903170", |
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
| #pragma once | |
| #include <exception> | |
| #include <memory> | |
| #include <typeinfo> | |
| #include <type_traits> | |
| namespace utils{ | |
| class any; |
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 <memory> | |
| template<typename T, typename... Args> | |
| std::unique_ptr<T> make_unique(Args&&... args) | |
| { | |
| return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); | |
| } |
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 <numeric> | |
| #include <vector> | |
| #include <iostream> | |
| long aVeryBigSum(const std::vector<long> &array) | |
| { | |
| return std::accumulate(array.begin(), array.end(), 0LL); | |
| } | |
| int main() |
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
| pacman | |
| ====== | |
| view logs: /var/log/pacman.log | |
| update system | |
| # pacman -Syu | |
| list installed packages | |
| # pacman -Q |
NewerOlder