download the script
wget https://gist.github.com/code-R/f1465e166c47a676bcab110d29624197
download the audio file
and then run the script you have downloaded
download the script
wget https://gist.github.com/code-R/f1465e166c47a676bcab110d29624197
download the audio file
and then run the script you have downloaded
from google.cloud import speech | |
from google.cloud.speech import enums | |
from google.cloud.speech import types | |
client = speech.SpeechClient() | |
speech_file = "gcloud_test.wav" | |
with open(speech_file, 'rb') as audio_file: | |
content = audio_file.read() |
from collections import OrderedDict | |
class FizzBuzzFooobuilder: | |
def __init__(self, x, objects): | |
self.number = x | |
self.logic_arr = objects | |
def print_verbose_name(self): | |
for logic in self.logic_arr: |
class FizzBuzzFooobuilder: | |
def __init__(self, x, objects): | |
self.number = x | |
self.logic_arr = objects | |
def print_verbose_name(self): | |
for logic in self.logic_arr: | |
if logic.run(self.number): | |
print(logic.verbose_name) | |
return |
class FizzBuzzGenerator(object): | |
"""docstring for Generator.""" | |
fizz_mapper = { | |
3: "fizz", | |
5: "buzz", | |
7: "fooo", | |
} | |
def __init__(self, count=5): |
Adding schema information in rails models(as comments) | |
http://rails-bestpractices.com/posts/68-annotate-your-models | |
https://github.com/ctran/annotate_models | |
Thoughtbot guides | |
https://github.com/thoughtbot/guides | |
pragmatic tips | |
http://pragmatictips.com/ |