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
nodes: | |
- name: C1 | |
image: alpine:latest | |
interfaces: | |
- { name: net1, type: direct, args: R1#net1 } | |
- name: C2 | |
image: alpine:latest | |
interfaces: | |
- { name: net2, type: direct, args: R1#net2 } |
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
nodes: | |
- name: R0 | |
image: frrouting/frr:v8.1.0 | |
interfaces: | |
- { name: net0, type: direct, args: C0#net0 } | |
- { name: net1, type: direct, args: R1#net1 } | |
docker_run_extra_args: --entrypoint bash | |
- name: R1 | |
image: frrouting/frr:v8.1.0 |
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 "source/extensions/tracers/skywalking/skywalking_tracer_impl.h" | |
#include "test/extensions/tracers/skywalking/skywalking_test_helper.h" | |
#include "test/mocks/common.h" | |
#include "test/mocks/server/tracer_factory_context.h" | |
#include "test/mocks/tracing/mocks.h" | |
#include "test/test_common/utility.h" | |
#include "gmock/gmock.h" | |
#include "gtest/gtest.h" |
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
use std::{collections::VecDeque, process::id}; | |
struct ValueNode { | |
value: char, | |
child_nodes: Vec<Box<ValueNode>>, | |
is_leaf: bool, | |
pos: usize, | |
} | |
impl ValueNode { |
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
PASS | |
ok boringssl.googlesource.com/boringssl/ssl/test/runner 4.265s | |
/root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/sandbox/processwrapper-sandbox/715/execroot/__main__ | |
FAIL: //test/common/utilities:random_test (see /root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/execroot/__main__/bazel-out/k8-fastbuild/testlogs/test/common/utilities/random_test/test.log) | |
FAIL: //test/common/session:session_string_generator_test (see /root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/execroot/__main__/bazel-out/k8-fastbuild/testlogs/test/common/session/session_string_generator_test/test.log) | |
INFO: From Testing //test/common/utilities:random_test: | |
==================== Test output for //test/common/utilities:random_test: | |
/root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/execroot/__main__/bazel-out/k8-fastbuild/bin/test/common/utilities/random_test.runfiles/__main__/test/common/utilities/random_test: symbol lookup error: /root/.cache/bazel/_bazel_root/f8087e59fd9 |
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
[2021-11-22 08:07:34.284][1][info][main] [source/server/server.cc:368] initializing epoch 0 (base id=0, hot restart version=11.104) | |
[2021-11-22 08:07:34.284][1][info][main] [source/server/server.cc:370] statically linked extensions: | |
[2021-11-22 08:07:34.284][1][info][main] [source/server/server.cc:372] envoy.formatter: envoy.formatter.metadata, envoy.formatter.req_without_query | |
[2021-11-22 08:07:34.284][1][info][main] [source/server/server.cc:372] envoy.resolvers: envoy.ip | |
[2021-11-22 08:07:34.284][1][info][main] [source/server/server.cc:372] envoy.filters.network: envoy.client_ssl_auth, envoy.echo, envoy.ext_authz, envoy.filters.network.client_ssl_auth, envoy.filters.network.connection_limit, envoy.filters.network.direct_response, envoy.filters.network.dubbo_proxy, envoy.filters.network.echo, envoy.filters.network.ext_authz, envoy.filters.network.http_connection_manager, envoy.filters.network.local_ratelimit, envoy.filters.network.mongo_proxy, envoy.filters.network.ratelimit, envoy.filters.network.rbac |
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
import math | |
def get_direct_mapped_address(line_size, entry_size, address_str): | |
# オフセットのサイズを求める | |
offset_size = int(math.log2(line_size)) | |
# インデックスのサイズを求める | |
index_size = int(math.log2(entry_size)) | |
print("offset:", offset_size, "bit") | |
print("index: ", index_size, "bit") |
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
import random | |
doors = [True, False, False] | |
def get_false(): | |
s = [] | |
for i, d in enumerate(doors): | |
if not d: | |
s.append(i) |
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 <cstdio> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <stdexcept> | |
#include <cstring> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <netinet/in.h> | |
#include <sys/socket.h> |
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
int main() { | |
int width = 640; | |
int height = 640; | |
int morton_unit_x = width / 8; | |
int morton_unit_y = height / 8; | |
double x = 533.2; | |
double y = 315.8; |