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
#!/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 |
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 <chrono> | |
class Timer | |
{ | |
public: | |
Timer() | |
{ | |
m_StartTimePoint = std::chrono::high_resolution_clock::now(); | |
} |
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 <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 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
import sys | |
import numpy as np | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtGui import * | |
from PyQt5.QtCore import * | |
from matplotlib.figure import Figure | |
from matplotlib.backends.backend_qt5agg import \ | |
FigureCanvasQTAgg as FigureCanvas | |
from matplotlib.backends.backend_qt5agg import \ | |
NavigationToolbar2QT as NavigationToolbar |
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
CXX = gcc | |
INCLUDES = -I./ | |
COMPFLAGS = -c -Wall -fPIC | |
PYINC = /home/yudha/applications/miniconda3/include/python3.7m | |
SWIG = /usr/bin/swig | |
PACKAGE = example | |
OPT = -O2 | |
# BUILD_DIR = ./buildpack | |
BINARIES = $(PACKAGE).o _$(PACKAGE).so $(PACKAGE)_wrap.o $(PACKAGE)_wrap.c | |
BINARIESEND = $(PACKAGE).o $(PACKAGE)_wrap.o $(PACKAGE)_wrap.c |
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
all: do | |
do: | |
@for a in *; do \ | |
if [ -d $$a ]; then if [ -f $$a/Makefile ]; then \ | |
echo $$a && cd $$a && make && cd ..; \ | |
fi; fi; \ | |
done; |
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
3,2 | |
4,4 | |
3,3 |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
Word Type NAMES o o o o | |
0 F DELTA DEPMIN DEPMAX SCALE ODELTA | |
5 F B E O A INTERNAL | |
10 F T0 T1 T2 T3 T4 | |
15 F T5 T6 T7 T8 T9 | |
20 F F RESP0 RESP1 RESP2 RESP3 | |
25 F RESP4 RESP5 RESP6 RESP7 RESP8 | |
30 F RESP9 STLA STLO STEL STDP | |
35 F EVLA EVLO EVEL EVDP MAG | |
40 F USER0 USER1 USER2 USER3 USER4 |
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 <stdio.h> | |
#include "cfunc.h" | |
void c_add(double* a, double* b, double* c) | |
{ | |
*c = *a + *b; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer