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 grpc | |
import time | |
import helloworld_pb2 | |
import helloworld_pb2_grpc | |
def run(): | |
channel_opts = [ | |
( | |
# Interval at which grpc will send keepalive pings | |
'grpc.keepalive_time_ms', |
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
python | |
_call_ (/opt/venvs/service/local/lib/python2.7/site-packages/grpc/_channel.py:489) | |
_blocking (/opt/venvs/service/local/lib/python2.7/site-packages/grpc/_channel.py:470)_prepare (/opt/venvs/service/local/lib/python2.7/site-packages/grpc/_channel.py:453) | |
_start_unary_request (/opt/venvs/service/local/lib/python2.7/site-packages/grpc/_channel.py:419) | |
_deadline (/opt/venvs/service/local/lib/python2.7/site-packages/grpc/_channel.py:55) | |
serialize (/opt/venvs/service/local/lib/python2.7/site-packages/grpc/_common.py:120)_transform (/opt/venvs/service/local/lib/python2.7/site-packages/grpc/_common.py:109) | |
_init_ (/opt/venvs/service/local/lib/python2.7/site-packages/grpc/_channel.py:102) | |
Condition (/usr/lib/python2.7/threading.py:241) | |
_init_ (/usr/lib/python2.7/threading.py:259) | |
_init_ (/usr/lib/python2.7/threading.py:58) |
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
# Initial indexed count query | |
{ | |
filter0(func: eq(tagkey_name, "server")) { | |
tagkey_value @filter(NOT regexp(tagvalue_name,/web10009.*/)){ | |
C_0 as count(tagvalue_item) | |
} | |
sum(val(C_0)) | |
} | |
filter1(func: eq(tagkey_name, "server")) { | |
tagkey_value @filter(regexp(tagvalue_name,/web1000.*/)){ |
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
def helowordl(): | |
print "Helo Wordl!" | |
helowordl() |
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
``` | |
# Copyright 2015 gRPC authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
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
// So I think this will work, havent tested it though | |
void draw() | |
{ | |
size(500, 500); | |
// So we want 5 triangles... | |
int number_of_triangles = 5; | |
// that get 5 times bigger everytime? | |
int scaler = 5; |
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
// So I think this will work, havent tested it though | |
void draw() | |
{ | |
size(500, 500); | |
// So we want 5 triangles... | |
number_of_triangles = 5; | |
// that get 5 times bigger everytime? | |
scaler = 5; |
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
void draw() | |
{ | |
size(500, 500); | |
x = 0; | |
y = 0; | |
w = 10; | |
h = 10; | |
for (int i = 5; i <= 45; i = i + 5) { | |
x = i; | |
y = y + i * 2; |