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
import numpy | |
from music21 import instrument, note, stream, chord | |
import sys | |
import numpy as np | |
def convert_to_float(frac_str): | |
try: | |
return float(frac_str) | |
except ValueError: | |
num, denom = frac_str.split('/') |
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
import glob | |
from music21 import converter, instrument, note, chord, interval, pitch | |
import sys | |
from tqdm import tqdm | |
def valid_note(note_number): | |
return -12*5 <= note_number <= 12*5 | |
def first_note(notes_to_parse): | |
for element in notes_to_parse: |
This file has been truncated, but you can view the full file.
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
aaronica | |
aaronicas | |
aaronico | |
aaronicos | |
aaronita | |
aaronitas | |
aba | |
ababa | |
ababas | |
ababilla |
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
# Original gesture source code: https://github.com/Sadaival/Hand-Gestures | |
# Original source code video demonstration: https://youtu.be/v-XcmsYlzjA | |
from FoxDot import * | |
import traceback | |
import cv2 | |
import numpy as np | |
import math | |
cap = cv2.VideoCapture(0) |
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 psychopy import visual, core, event | |
import datetime | |
import pandas as pd | |
# Colours | |
gray = '#969696' | |
black = '#000000' | |
white = '#FFFFFF' | |
# Window parameters |
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 bs4 import BeautifulSoup | |
import requests | |
import os | |
letras_url = "https://www.letras.com" | |
def descargar_cancion(url_path, destination_path): | |
url = f"{letras_url}{url_path}" | |
page = requests.get(url) | |
soup = BeautifulSoup(page.content, 'html.parser') |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Aries. Acepta la ayuda que te ofrecen en el trabajo, así evitarás los agobios. Tendrás que invertir en cosas necesarias para el hogar, pero te valdrá la pena. Te dedicarás a poner al día esos asuntos que tienes un poco descuidados. Tendrás una larga y muy productiva conversación con alguien de tu familia. Reconcíliate con ese antiguo amigo, ninguno de los dos queréis seguir así. Vivirás una racha estupenda en el amor en la que todo marchará como esperabas. En tu vida habrá cosas que volverán a ilusionarte y te irá mucho mejor. Estás un poco mal de ánimo, y como eso en ti no es frecuente, no te sientes bien. Si consigues concentrarte un poco más, te irá mucho mejor. La mejor solución para controlar los nervios es practicar algo de deporte. Los astros te favorecen, estarás muy bien de energías y será un día positivo. | |
Tauro. Las cosas no están avanzando tan rápido como esperabas, pero te irá bien. En el trabajo todo funcionará solo, no tendrás motivos para preocuparte. Te preocupa la idea de aumentar tus ingreso |
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
import requests | |
def download_file_from_google_drive(id, destination): | |
URL = "https://docs.google.com/uc?export=download" | |
session = requests.Session() | |
response = session.get(URL, params = { 'id' : id }, stream = True) | |
token = get_confirm_token(response) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder