- Insert the USB drive which has Ubuntu Software
- Restart your machine.
- While it is starting keep pressing ‘Delete’ button until BIOS options page comes.
- otherwise go to step 2 and repeat the process
- Once you get the BIOS options go to ‘Boot’ from the menu and click on HardDisjDrives
- Change the first drive to USB from SATA HARDDisk
- Then it will boot from the USB drive.
- You can see a exectutable file named ‘Install ubuntu’ double-click on that
- when you proceed you will get options like following
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
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/ |
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
class FizzBuzzGenerator(object): | |
"""docstring for Generator.""" | |
fizz_mapper = { | |
3: "fizz", | |
5: "buzz", | |
7: "fooo", | |
} | |
def __init__(self, count=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
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 |
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
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: |
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
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() |
download the script
wget https://gist.github.com/code-R/f1465e166c47a676bcab110d29624197
download the audio file
and then run the script you have downloaded