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 <type_traits> | |
#include <iostream> | |
using namespace std; | |
// must be used for movable arguments only | |
void f(int&& x) { | |
using X = decltype(x); | |
cout << __PRETTY_FUNCTION__ << ' ' << std::is_rvalue_reference<X>::value << endl; | |
} |
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
FROM alpine:edge | |
MAINTAINER Vladimir Rapatskiy <[email protected]> | |
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >>/etc/apk/repositories && \ | |
apk update && \ | |
apk add --no-cache \ | |
py-matplotlib \ | |
py-scipy \ | |
py2-pip && \ |
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
FROM debian:stretch-slim | |
MAINTAINER Vladimir Rapatskiy <[email protected]> | |
RUN apt-get update && \ | |
apt-get install -qq --no-install-recommends \ | |
libopenblas-base \ | |
python3-lmfit \ | |
python3-seaborn && \ | |
apt-get clean |
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
FROM debian:stretch-slim as zstd | |
MAINTAINER Vladimir Rapatskiy <[email protected]> | |
WORKDIR /tmp | |
RUN set -ex; \ | |
apt-get -q update; \ | |
apt-get install -yq --no-install-recommends ca-certificates curl gcc make libc6-dev zlib1g-dev; \ | |
apt-get clean; \ | |
curl -sSL https://github.com/facebook/zstd/archive/v1.3.2.tar.gz | tar xz; \ | |
cd zstd-1.3.2; \ | |
CFLAGS="-march=sandybridge -O3 -flto" make -j$(nproc); \ |
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 <vector> | |
#include <algorithm> | |
#include <cstddef> | |
#include <iostream> | |
#include <exception> | |
#include <iterator> | |
typedef std::vector<size_t> TVector; | |
// max sum[v] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>for-of loop vs forEach</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |