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 <ostream> | |
struct Vector | |
{ | |
int x, y; | |
Vector(int X, int Y) : x(X), y(Y) {} | |
}; | |
std::ostream& operator<<(std::ostream& stream, const Vector& other) |
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 <chrono> | |
class Timer | |
{ | |
public: | |
Timer() | |
{ | |
m_StartTimePoint = std::chrono::high_resolution_clock::now(); | |
} |
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 | |
inputgrd='data.grd' | |
start=100/-2 | |
end=93/5 | |
gmt project -C$start -E$end -G1 -Q | gmt grdtrack -G$inputgrd > data.xyz | |
awk '{print $1, $2, $4}' data.xyz > datarev.xyz |
NewerOlder