This file contains hidden or 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 youtube_dl | |
import time | |
import re | |
import requests | |
import os | |
import sys | |
# Get the arguments from the command-line except the filename | |
argv = sys.argv[1:] | |
Url = "" |
This file contains hidden or 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 youtube_dl | |
import time | |
import re | |
import requests | |
import os | |
def downSub(video_url,language): | |
# check if valid youtube_link and remove playlist ID from url if exists. | |
_temp = video_url.lower() | |
if 'youtube.com' in _temp or 'youtu.be' in _temp: |
This file contains hidden or 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 youtube_dl | |
import time | |
import re | |
import requests | |
import os | |
def downSub(video_url,language): | |
# check if valid youtube_link and remove playlist ID from url if exists. | |
_temp = video_url.lower() | |
if 'youtube.com' in _temp or 'youtu.be' in _temp: |
This file contains hidden or 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
Q: Do you love anyone? | |
I love my family and friends very much. | |
Q: What are their names? | |
My family members are my parents, sisters, and brother. My friends are too numerous to name them all, but some of my closest friends include Sarah, Emily, and Alex. | |
Q: My Dad's name is xxxxx, what is your fathers name? | |
My father's name is James. |
This file contains hidden or 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 speech_recognition import * | |
from os import walk, path | |
import glob | |
import wave | |
import nltk | |
import contextlib | |
from pydub import AudioSegment | |
from pydub.silence import split_on_silence | |
import subprocess |
This file contains hidden or 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 speech_recognition import * | |
from os import walk, path | |
import glob | |
import wave | |
import contextlib | |
from pydub import AudioSegment | |
from pydub.silence import split_on_silence | |
def split(filepath): | |
sound = AudioSegment.from_file(filepath) |
This file contains hidden or 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
if Ferrocene stablises the physical properties of Perovskite without diminishing it's ability to generate electrons via solar radiation postulate 10 other compounds that would have similar effects. | |
1. Pyrite | |
2. Graphite | |
3. Carbon nanotubes | |
4. Diamond | |
5. C60 | |
6. Graphene | |
7. MoS2 | |
8. WS2 |
This file contains hidden or 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
$("#button").click(function(){ | |
var canvas = document.getElementById("canvas"); | |
var ctx = canvas.getContext("2d"); | |
ctx.fillStyle = "white"; | |
ctx.fillRect(0, 0, canvas.width, canvas.height); | |
var dataURL = canvas.toDataURL("image/png"); | |
ctrlq.org.google.uploadImage(dataURL); | |
}); |
This file contains hidden or 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
#write the code for an efficient and modular, reentrant, Stochastic gradient descent in python for any set of two unknown float inputs. output the results in matlab graph format and as an Open Office Spreadsheet. | |
import numpy as np | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
def sgd(w1, w2, eta, n_iter): | |
""" | |
Performs stochastic gradient descent (SGD) using two unknown float inputs. | |
This file contains hidden or 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
'code an efficient and short, modular Stochastic gradient descent in c# for any set of two unknown float inputs. output the results in matlab graph format | |
'Stochastic gradient descent in c | |
function results = stochastic_gradient_descent(x, y) | |
'Hypothesis function | |
h = @(theta0, theta1, x) theta0 + theta1 * x; |