Skip to content

Instantly share code, notes, and snippets.

View mathigatti's full-sized avatar

Mathias Gatti mathigatti

View GitHub Profile
@mathigatti
mathigatti / es.txt
Created June 27, 2022 23:31
Palabras de español sacadas de https://github.com/lorenbrichter/Words/
This file has been truncated, but you can view the full file.
aaronica
aaronicas
aaronico
aaronicos
aaronita
aaronitas
aba
ababa
ababas
ababilla
@mathigatti
mathigatti / exam.ipynb
Last active May 26, 2021 20:15
Take exams on colab. Answers are saved into a CSV
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mathigatti
mathigatti / horoscopo.txt
Last active May 17, 2021 20:38
Datos recolectados por Jorge Ortiz Fuentes de https://t.me/EsTuHoroscopo
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
@mathigatti
mathigatti / download_from_drive.py
Last active May 4, 2021 15:43
Python Script to download any file (any size) from Google Drive. Original code: https://github.com/saurabhshri/gdrive-downloader
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)
@mathigatti
mathigatti / feriados.ipynb
Created February 15, 2021 22:32
Feriados Argentina
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import time
from rtmidi.midiutil import open_midiinput
port = 0
midi_in, port_name = open_midiinput(port)
last_gestures = []
last_gesture = None
while True:
@mathigatti
mathigatti / filling_the_sample_gaps.py
Created October 14, 2020 19:32
Short script for creating missing note samples detuning the ones you have.
!pip install librosa
import glob
import os
import librosa
def closest_sample(note, notes):
absolute_difference_function = lambda list_value : abs(list_value - note)
return min(notes, key=absolute_difference_function)
def detune(audio_file, semitone_steps, output_file):
import sounddevice as sd
import soundfile as sf
import threading
import time
def find_source(source):
devices = sd.query_devices()
for i, v in enumerate(list(devices)):
if v["name"] == source:
return i
import curses, os
def main(stdscr):
# do not wait for input when calling getch
stdscr.nodelay(1)
while True:
# get keyboard input, returns -1 if none available
c = stdscr.getch()
if c != -1:
# print numeric value
import sys
import os
import argparse
import json
import re
import tensorflow.compat.v1 as tf
import numpy as np
from train.modeling import GroverModel, GroverConfig, sample