I think blow api ( If use REST API)
/history/transaction?uuid=aaaa
#include <vector> | |
#include <string> | |
#include <sstream> | |
#include <iostream> | |
#include <memory> | |
#include <string.h> | |
#include <cstdarg> | |
#include <type_traits> | |
using namespace std; |
CORENUM=`grep -c ^processor /proc/cpuinfo` | |
apt update | |
apt -y install build-essential cmake pkg-config | |
apt -y wget unzip | |
apt -y install libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev | |
apt -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev | |
apt -y install libxvidcore-dev libx264-dev libgtk2.0-dev libatlas-base-dev gfortran | |
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" |
# homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# cmake | |
brew install cmake | |
echo 'PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bash_profile | |
# liquidprompt | |
mkdir -p ~/foundation; cd ~/foundation; | |
git clone https://github.com/nojhan/liquidprompt.git |
cd path/to/flatbuffers; | |
cd grpc; | |
flatc --cpp --grpc ../tests/monster_test.fbs; | |
rm monster_test_generated.h; # to include flatbuffers/tests/monster_test_generated.h | |
g++ -std=c++14 -Wl,-no-as-needed -lgrpc -lgrpc++ -lgpr -pthread tests/grpctest.cpp monster_test.grpc.fb.cc -I../tests/ -o grpctest; | |
./grpctest; | |
# and | |
valgrind ./grpctest; |
r = [0] * 7 | |
pc = 1 | |
def M(i,j): | |
def _m(): | |
r[i] = r[j] | |
return False | |
return _m | |
def J(i,j,k): |
mkdir /tmp/gcc | |
cd /tmp/gcc | |
wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-5.1.0/gcc-5.1.0.tar.gz | |
tar xzvf gcc-5.1.0.tar.gz | |
wget http://www.mpfr.org/mpfr-current/mpfr-3.1.5.tar.gz | |
tar -xf mpfr-3.1.5.tar.gz | |
wget ftp://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.xz |
\*/ | |
*|* *O* | |
*\*/* /*\ | |
-*O*- ..|.. | | |
*/*\* ..*|*.. | ..|.. | |
*|* .>*\*/*<. | ..*|*.. | |
| .--*O*--. | .>*\*/*<. | |
| .>*/*\*<. | .--*O*--. | |
| /.*|*.\ | .>*/*\*<. |
#include <iostream> | |
#include <functional> | |
#include <algorithm> | |
#include <vector> | |
#include <list> | |
#include <array> | |
#include <string> | |
#include <initializer_list> | |
using std::cout; |
#include <iostream> | |
#include <type_traits> | |
class Base{ | |
public: | |
int get(){ return 1234; } | |
}; | |
class A{}; | |
class B : public Base{}; |