Skip to content

Instantly share code, notes, and snippets.

View code-R's full-sized avatar

Vamsi code-R

  • tilda.bio
  • Hyderabad
View GitHub Profile
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:
@code-R
code-R / fizzbuzzfoo.py
Created August 21, 2018 15:52
fizzbuzzfoo
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
@code-R
code-R / fizzbuzz.py
Last active August 21, 2018 12:42
fizzbuzz
class FizzBuzzGenerator(object):
"""docstring for Generator."""
fizz_mapper = {
3: "fizz",
5: "buzz",
7: "fooo",
}
def __init__(self, count=5):
@code-R
code-R / rails best practices
Last active August 29, 2015 14:05
Some good articles and gems related to ruby and rails
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/
@code-R
code-R / README.md
Created October 16, 2012 08:41
Rails install

Installing Ubuntu :

  1. Insert the USB drive which has Ubuntu Software
  2. Restart your machine.
  3. While it is starting keep pressing ‘Delete’ button until BIOS options page comes.
  4. otherwise go to step 2 and repeat the process
  5. Once you get the BIOS options go to ‘Boot’ from the menu and click on HardDisjDrives
  6. Change the first drive to USB from SATA HARDDisk
  7. Then it will boot from the USB drive.
  8. You can see a exectutable file named ‘Install ubuntu’ double-click on that
  9. when you proceed you will get options like following