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
| brew install emacs --with-cocoa --japanese | |
| ln -s /usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.1/Emacs.app /Applications/ |
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
| #define BOOST_TEST_DYN_LINK | |
| #define BOOST_TEST_MAIN | |
| #include <boost/test/unit_test.hpp> | |
| #include <boost/test/data/test_case.hpp> | |
| #include <iostream> | |
| #include <vector> | |
| using namespace std; | |
| BOOST_AUTO_TEST_CASE(sample_test) { | |
| int a = 10; |
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 <glog/logging.h> | |
| void sample() { | |
| CHECK_EQ(10, 20); | |
| } | |
| int main(int argc, char *argv[]) { | |
| LOG(INFO) << "start!"; | |
| google::SetLogDestination(google::GLOG_INFO, "."); | |
| google::InitGoogleLogging(argv[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> | |
| #include <Eigen/Core> | |
| using namespace std; | |
| using namespace Eigen; | |
| int main() { | |
| Matrix4d d4; | |
| cout << "d4" << endl; | |
| cout << d4 << endl; |
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 <ctype.h> | |
| #include <stdlib.h> | |
| int main(int argc, char *argv[]) { | |
| if (argc != 2) { | |
| fprintf(stderr, "Usage %s equation\n", argv[0]); | |
| exit(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
| #include <iostream> | |
| #include <functional> | |
| #include <gtest/gtest.h> | |
| #include <glog/logging.h> | |
| using namespace std; | |
| namespace myhash { | |
| enum Status { |
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 <string.h> | |
| #include <stdlib.h> | |
| #define MAX_SIZE 10 | |
| //#define MAX_SIZE 1071 | |
| typedef struct _table { | |
| int value; | |
| char *key; | |
| struct _table *next; |
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> | |
| typedef struct _tree { | |
| int value; | |
| struct _tree *left; | |
| struct _tree *right; | |
| } Tree; | |
| Tree *tree_init(int value) { |
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
| brew install emacs-plus --without-spacemacs-icon --with-emacs-27-branch \ | |
| --with-no-titlebar --with-no-frame-refocus --with-jansson --HEAD |
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
| const CALLENDAR_ID = '<calendar_id>' | |
| const SHEET_ID = '<sheet_id>' | |
| function main() { | |
| // 現在の年と月を取得 | |
| const [year, month] = getCurrentYearMonth(); | |
| // 月の開始時刻と終了時刻を取得 | |
| const [startTime, endTime] = getCurrentMonthTimes(year, month); |