I hereby claim:
- I am daspecster on github.
- I am daspecster (https://keybase.io/daspecster) on keybase.
- I have a public key whose fingerprint is 6637 03BC FDEF 0448 E6CF CF0C 3979 261C E270 F888
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
@snippet | |
def udf_inline(client, _): | |
"""Inline UDF.""" | |
from google.cloud.bigquery.job import UDFResource | |
UDF_QUERY = ('SELECT upper_name FROM upperCaseName(' | |
'[bigquery-public-data:usa_names.usa_1910_2013]) ' | |
'WHERE state = "TX"') | |
INLINE_UDF_CODE = """ | |
function upperCaseName(r, emit) { | |
emit({upper_name: r.name.toUpperCase(), |
import time | |
from google.cloud.gapic.speech.v1beta1 import enums | |
from google.cloud.gapic.speech.v1beta1 import speech_api | |
from google.cloud.grpc.speech.v1beta1 import cloud_speech_pb2 | |
# point this at an audio sample for your project | |
INPUT_URI = 'gs://ferrous-arena-my-test-bucket/hello.flac' | |
# With fresh venv | |
cd google-cloud-python | |
rm -rf .tox | |
rm -rf ./**/.tox | |
pip install tox | |
tox -e py27 --recreate --notest | |
cd core | |
../.tox/py27/bin/python setup.py install | |
cd .. | |
cd speech |
diff --git a/core/google/cloud/operation.py b/core/google/cloud/operation.py | |
index 1562127..6036e02 100644 | |
--- a/core/google/cloud/operation.py | |
+++ b/core/google/cloud/operation.py | |
@@ -74,6 +74,7 @@ class Operation(object): | |
""" | |
target = None | |
+ results = None | |
"""Instance assocated with the operations: callers may set.""" |
# non-ternary; fails coverage | |
def _make_image_properties_from_pb(image_properties): | |
"""Create ``ImageProperties`` object from a protobuf response. | |
:type image_properties: :class:`~google.cloud.grpc.vision.v1.\ | |
image_annotator_pb2.ImagePropertiesAnnotation` | |
:param image_properties: Protobuf instance of | |
``ImagePropertiesAnnotation``. | |
:rtype: list |
<script type="text/javascript"> | |
(function($) { | |
$(function() { | |
// API key and country can go here. | |
var options = { | |
"key": "your-api-key-here", | |
"country": "US" | |
} | |
var duration = 500; |
apt-get update; | |
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" | |
apt-get update | |
apt-get install -y docker-ce |
curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose |