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> | |
| // base declaration | |
| struct base { | |
| int x; | |
| int y; | |
| base(int, int); | |
| int foo(); |
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 <vector> | |
| #include <random> | |
| #include <algorithm> | |
| #include <utility> | |
| class Date { | |
| public: | |
| Date() | |
| : Date(0, 0, 0) |
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
| user_pref("extensions.pocket.enabled", false); | |
| user_pref("identity.fxaccounts.enabled", false); | |
| user_pref("privacy.donottrackheader.enabled", true); | |
| user_pref("browser.newtabpage.activity-stream.feeds.snippets", false); | |
| user_pref("network.security.esni.enabled", true); | |
| user_pref("network.trr.mode", 3); | |
| user_pref("network.trr.uri", "https://cloudflare-dns.com/dns-query"); | |
| user_pref("network.trr.bootstrapAddress", "1.1.1.1"); |
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
| default partial alphanumeric_keys | |
| xkb_symbols "basic" { | |
| include "us" | |
| include "level3(ralt_switch)" | |
| name[Group1] = "US/SL"; | |
| key<AB03> { [c, C, ccaron, Ccaron] }; | |
| key<AC02> { [s, S, scaron, Scaron] }; | |
| key<AB01> { [z, Z, zcaron, Zcaron] }; | |
| }; |
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
| font_size 12.0 | |
| font_family Iosevka Term | |
| bold_font Iosevka Term Bold | |
| italic_font auto | |
| bold_italic_font auto | |
| background #1e282d | |
| foreground #dde3e6 | |
| color0 #666666 |
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 <vector> | |
| #include <iostream> | |
| #include <iomanip> | |
| struct Date { | |
| int d, m, y; | |
| Date(const int d, const int m, const int y) : d(d), m(m), y(y) {}; | |
| std::string to_string() const { |
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
| // List = Cell | Null | |
| #include <memory> | |
| #include <iostream> | |
| class List { | |
| public: | |
| virtual int head() const = 0; | |
| virtual std::shared_ptr<const List> tail() const = 0; | |
| virtual int size() const = 0; |
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 <vector> | |
| // Printable = Number | String | |
| class Printable { | |
| public: | |
| virtual std::string toString() const = 0; | |
| virtual ~Printable() = 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 <iostream> | |
| #include <memory> | |
| #include <sstream> | |
| #include <vector> | |
| class Xml { | |
| public: | |
| static std::string identToString(int indent) { | |
| return std::string(4 * indent, ' '); | |
| } |
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 <memory> | |
| #include <sstream> | |
| #include <vector> | |
| class XmlModel { | |
| public: | |
| static std::string identToString(int indent) { | |
| return std::string(4 * indent, ' '); | |
| } |