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
CONFORMANCE TEST BEGIN ==================================== | |
ERROR, test=Required.Proto3.ProtobufInput.IllegalZeroFieldNum_Case_0: Should have failed to parse, but didn't. request=protobuf_payload: "\001DEADBEEF" requested_output_format: PROTOBUF message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: BINARY_TEST, response=protobuf_payload: "" | |
ERROR, test=Required.Proto2.ProtobufInput.IllegalZeroFieldNum_Case_0: Should have failed to parse, but didn't. request=protobuf_payload: "\001DEADBEEF" requested_output_format: PROTOBUF message_type: "protobuf_test_messages.proto2.TestAllTypesProto2" test_category: BINARY_TEST, response=protobuf_payload: "" | |
ERROR, test=Required.Proto3.ProtobufInput.IllegalZeroFieldNum_Case_1: Should have failed to parse, but didn't. request=protobuf_payload: "\002\001\001" requested_output_format: PROTOBUF message_type: "protobuf_test_messages.proto3.TestAllTypesProto3" test_category: BINARY_TEST, response=protobuf_payload: "" | |
ERROR, test=Required.Proto2.Protobuf |
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
defmodule Timestamp do | |
@moduledoc """ | |
Generate a timestamp as an integer using current time. | |
""" | |
@spec make() :: integer() | |
def make() do | |
%{year: y, month: m, day: d, hour: hh, minute: mm, second: ss, microsecond: {us, _}} = | |
NaiveDateTime.utc_now() |
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
# As an exercise after reading this tweet: https://twitter.com/Al_Grigor/status/1357028887209902088?s=20 | |
str = String.split("aaaabbbcca", "", trim: true) | |
str | |
|> Enum.reduce([], fn | |
x, [{x, count} | rest] -> | |
[{x, count + 1} | rest] | |
x, acc -> |
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
# --------------------------------------------------------------------------------------------------- | |
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = ">= 3.31.0" | |
} | |
kubernetes = { | |
source = "hashicorp/kubernetes" |
OlderNewer