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 <chrono> | |
| #include <cstdio> | |
| #include <fstream> | |
| #include <string> | |
| #include <vector> | |
| #include "tree.h" // for TreeNode | |
| using namespace std::chrono; |
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 <fstream> | |
| #include <iostream> | |
| #include <string> | |
| #include <map> | |
| #include <regex> | |
| const std::map<char, std::string> bfinstructions{ | |
| {'>', "++ptr;"}, | |
| {'<', "--ptr;"}, | |
| {'+', "++*ptr;"}, |
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
| (* 2019-06-07: Added nohup and output redirection to fix a bug with "Open Terminal here" feature. | |
| Thanks to @fools-mate for bringing the issue to my attention. *) | |
| on alfred_script(q) | |
| do shell script "cd ~; nohup /Applications/kitty.app/Contents/MacOS/kitty /bin/bash -c \"source ~/.bashrc && " & q & ";/bin/bash\" > /dev/null 2>&1 &" | |
| end alfred_script |
This file has been truncated, but you can view the full file.
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
| aa | |
| aah | |
| aahed | |
| aahing | |
| aahs | |
| aal | |
| aalii | |
| aaliis | |
| aals | |
| aardvark |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int place = 1; | |
| int places = 100; | |
| int main(int argc, char* argv[]) { | |
| if (argc >= 3) { | |
| places = atoi(argv[2]); |
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
| #! /bin/bash | |
| if (( $# == 1 )) && [ "$1" == "?" ] | |
| then | |
| say -v ? | |
| echo "" | |
| echo "Voices should be specified in quotes if 2+ words." | |
| exit 0 | |
| fi |
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 <regex> | |
| #include <string> | |
| #include <fstream> | |
| #include <vector> | |
| #include <ctime> | |
| #include <thread> | |
| using namespace std; |
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 "stdafx.h" | |
| #include "Day9.h" | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #include <fstream> | |
| #include <algorithm> | |
| #include <map> | |
| using namespace std; |
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 "stdafx.h" | |
| #include "Day8.h" | |
| #include <iostream> | |
| #include <string> | |
| #include <fstream> | |
| #include <regex> | |
| using namespace std; | |
| // this is just to make my code later on cleaner and simpler, whereas up here I don't really care. |
NewerOlder