I hereby claim:
- I am vietjtnguyen on github.
- I am vietjtnguyen (https://keybase.io/vietjtnguyen) on keybase.
- I have a public key ASBBdlSqxnnLk7twRHCM2rHhu1idwfIQVwaFyxN40iFwugo
To claim this, I am signing this object:
#!/usr/bin/python | |
#import numpy as np | |
#import pandas as pd | |
#import scipy as sp | |
#import scipy.ndimage as nd | |
#import scipy.signal as sg | |
#import itertools, pickle, random, os | |
from math import * | |
import sys | |
for line in sys.stdin.readlines(): |
I hereby claim:
To claim this, I am signing this object:
check: main | |
valgrind --tool=memcheck --leak-check=yes ./main | |
main: main.cpp | |
g++ main.cpp -o main -std=c++11 |
// https://www.youtube.com/watch?v=2gjroKLyWKE | |
#include <utility> | |
struct S | |
{ | |
// trailing & means only applies to lvalues on left side | |
S& operator=(const S& s) & = default; | |
S& operator=(S& s) & = default; | |
S& operator=(S&& s) & = default; // move from |
.PHONY: all | |
all: foo_with_assert foo_with_throw | |
foo_with_assert: assert.hpp foo.hpp foo.cpp main.cpp | |
g++ -std=c++11 -o foo_with_assert main.cpp foo.cpp -g -O0 | |
foo_with_throw: assert.hpp foo.hpp foo.cpp main.cpp | |
g++ -std=c++11 -o foo_with_throw main.cpp foo.cpp -g -O0 - | |
DMY_LIB_THROW_INSTEAD_OF_ASSERT |