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
Error: invalid arguments. (gtags.vim requires GLOBAL 5.7 or later) |
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
$ ./configure --disable-gtagscscope | |
$ make | |
$ make install |
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
# WindowsからLinuxのターミナルを開くまで | |
以下の方法でターミナルを開いたあと、firefox &等のコマンドを打てばguiアプリケーションが立ち上がる。 | |
方法2がおすすめ。 | |
## 方法1 | |
http://kaiseki-web.lhd.nifs.ac.jp/gecev/xming/Xming.htm | |
## 方法2 | |
http://vogel.at.webry.info/201310/article_6.html |
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
#include <cstdio> | |
#include <string> | |
#include <thread> | |
class SomeClass | |
{ | |
public: | |
SomeClass(std::string threadName, int loopNum) : | |
_threadName(threadName), |
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
#include <cstdio> | |
#include <string> | |
#include <thread> | |
#include <mutex> | |
class SomeClass | |
{ | |
public: | |
SomeClass(std::string threadName, std::mutex& mtx) : |
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
#include <cstdio> | |
#include <string> | |
#include <thread> | |
#include <mutex> | |
class SomeClass | |
{ | |
public: | |
SomeClass(std::string threadName, std::mutex& mtx) : |
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
#include <cstdio> | |
#include <string> | |
#include <future> | |
int main() | |
{ | |
auto f = [](std::string threadName) { | |
for (int i = 0; i < 10; i++) | |
{ |
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
#include <cstdio> | |
#include <bitset> | |
template <unsigned int N> | |
void __printBitset(std::bitset<N> bitset) | |
{ | |
printf("size(): [%zu]\n", bitset.size()); | |
printf("count(): [%zu]\n", bitset.count()); | |
printf("all(): [%u]\n", bitset.all()); |
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
#include <cstdio> | |
#include <tuple> | |
int main() | |
{ | |
std::tuple<double, double, double> xyz = std::make_tuple(1.0, 2.0, 3.0); | |
std::get<0>(xyz) = 4.0; | |
printf("std::get<0>(xyz): [%lf]\n", std::get<0>(xyz)); | |
printf("std::get<1>(xyz): [%lf]\n", std::get<1>(xyz)); |
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
#include <iostream> | |
#include <iomanip> | |
#include <ctime> | |
#include <chrono> | |
int main() | |
{ | |
std::time_t t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); | |
std::cout << "UTC: " << std::put_time(std::gmtime(&t), "%F %T") << '\n'; |
OlderNewer