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 <iterator> | |
#include <unordered_map> | |
#include <unordered_set> | |
#include <vector> | |
#include <boost/graph/compressed_sparse_row_graph.hpp> | |
#include <boost/graph/filtered_graph.hpp> | |
#include <boost/graph/graph_traits.hpp> | |
#include <boost/graph/graph_utility.hpp> |
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 <vector> | |
#include <iostream> | |
#include <iterator> | |
#include <boost/graph/compressed_sparse_row_graph.hpp> | |
#include <boost/graph/graph_traits.hpp> | |
#include <boost/graph/graph_utility.hpp> | |
#include <boost/graph/breadth_first_search.hpp> | |
#include <boost/coroutine/all.hpp> |
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 <boost/graph/compressed_sparse_row_graph.hpp> | |
#include <boost/graph/graph_traits.hpp> | |
#include <boost/graph/graph_utility.hpp> | |
#include <vector> | |
#include <iostream> | |
#include <iterator> | |
#include <utility> | |
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 <boost/graph/compressed_sparse_row_graph.hpp> | |
#include <boost/graph/filtered_graph.hpp> | |
#include <boost/graph/graph_traits.hpp> | |
#include <boost/graph/graph_utility.hpp> | |
#include <boost/range/algorithm/for_each.hpp> | |
#include <vector> | |
#include <iostream> | |
#include <iterator> |
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 <cstdint> | |
#include <immintrin.h> | |
// Z-order via bit interleaving a and b as in: a[31]b[31]a[30]b[30]... | |
inline std::uint64_t zorder(std::uint32_t a, std::uint32_t b) { | |
return _pdep_u64(a, 0xaaaaaaaaaaaaaaaaULL) | _pdep_u64(b, 0x5555555555555555ULL); | |
} |
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
Driver: GTiff/GeoTIFF | |
Files: grd-vv-native.tif | |
Size is 26569, 16673 | |
GCP Projection = | |
GEOGCRS["WGS 84", | |
DATUM["World Geodetic System 1984", | |
ELLIPSOID["unnamed",6378137,298.25722356049, | |
LENGTHUNIT["metre",1]]], | |
PRIMEM["Greenwich",0, | |
ANGLEUNIT["degree",0.0174532925199433]], |
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
FROM ubuntu:20.04 | |
ENV LANG="C.UTF-8" LC_ALL="C.UTF-8" PATH="/home/python/.poetry/bin:/home/python/.local/bin:$PATH" PIP_NO_CACHE_DIR="false" | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
python3 python3-pip python-is-python3 curl ca-certificates && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN groupadd --gid 1000 python && \ | |
useradd --uid 1000 --gid python --shell /bin/bash --create-home python |
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 <cstdlib> | |
#include <iostream> | |
#include <initializer_list> | |
#define expand_pack(...) (void) std::initializer_list<int>{((void)(__VA_ARGS__), 0)...}; | |
template <typename... Iter> | |
void increment_all(Iter&... iters) { | |
expand_pack(++iters); | |
} |
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 random | |
class GrowCounter: | |
'''Convergent conflict-free replicated data type state based grow-only counter. | |
Guarantees strong eventual consistency. | |
''' | |
def __init__(self, n): | |
assert n > 0, 'at least one node in cluster' |
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 <vector> | |
#include <iterator> | |
#include <algorithm> | |
#include <mutex> | |
#include <thread> | |
#include "tbb/task_scheduler_observer.h" | |
#include "tbb/task_scheduler_init.h" | |
#include "tbb/blocked_range.h" |