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 | |
import pprint | |
def run(tries): | |
count = 0 | |
for i in range(tries): | |
if random.randrange(1<<count) <= 0: | |
count += 1 | |
return count |
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
package io.grpc.examples; | |
import io.grpc.CallOptions; | |
import io.grpc.ClientCall; | |
import io.grpc.ManagedChannel; | |
import io.grpc.ManagedChannelBuilder; | |
import io.grpc.Metadata; | |
import io.grpc.MethodDescriptor; | |
import io.grpc.MethodDescriptor.Marshaller; | |
import io.grpc.MethodDescriptor.MethodType; |
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
# -Djava.util.logging.config.file=myLoggingConfigFilePath | |
handlers = java.util.logging.ConsoleHandler | |
java.util.logging.ConsoleHandler.level = ALL | |
.level = FINE | |
io.grpc.netty.NettyClientHandler = ALL | |
io.grpc.netty.NettyServerHandler = ALL |
NewerOlder