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
Verifying that "danielwang.id" is my Blockstack ID. https://onename.com/danielwang |
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
0x83CB00EBf338036fb3De3a6971Fdd894381cAAA9 |
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
Verifying that "danielwang.id" is my Blockstack ID. https://onename.com/danielwang |
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
Verifying my Blockstack ID is secured with the address 1FZPsTSx1N4CxLLk6vPKF8p4VumMyk4E2D https://explorer.blockstack.org/address/1FZPsTSx1N4CxLLk6vPKF8p4VumMyk4E2D |
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
// Includes | |
namespace vm { | |
enum MODE { | |
COMMAND, | |
INSERT, | |
REPLACE | |
}; | |
class Application { |
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
// Includes | |
namespace vm { | |
class View { | |
public: | |
View(int height, int width, int startX, int startY); | |
~View(); | |
void printBufferContent(); | |
void setHighlighter(std::unique_ptr<Highlighter> highlighter); |
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
// Includes here | |
class Controller { | |
public: | |
explicit Controller(Application& app); | |
void listenForInputs(); | |
private: | |
void listenInsertMode(); |
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
if (!_app.commandStack().empty() && _app.commandStack().top()->canUndo()) { | |
_app.commandStack().top()->undo(); | |
_app.commandStack().pop(); | |
} |
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
class Buffer { | |
public: | |
explicit Buffer(int maxLines); | |
std::string readFile(const std::string& fileName); | |
void replaceChar (char c, int x, int y); | |
void insertChar (char c, int x, int y); | |
void insertString (const std::string& str, int x, int y); | |
void insertNewLine(int x, int y); | |
void deleteChar (int x, int y); |
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
Verifying my Blockstack ID is secured with the address 1GcD6y28FsUJK5XkXvL7Pd1TnSQ5cPK4X5 https://explorer.blockstack.org/address/1GcD6y28FsUJK5XkXvL7Pd1TnSQ5cPK4X5 |
OlderNewer