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
"""Download tracks from a YouTube playlist and use an assisted Discogs search to tag them. | |
Requires yt-dlp, ffmpeg and a browser automation driver for selenium. | |
""" | |
import io | |
import os | |
import re | |
import glob | |
import json | |
import argparse |
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 | |
import argparse | |
import logging | |
import math | |
import tqdm | |
import itertools | |
from PIL import Image, ImageDraw | |
class Vector: |
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
function gcd(a, b) { | |
if (b == 0) return a; | |
return gcd(b, a % b); | |
} | |
var context; | |
var width; | |
var height; | |
var image_data; |
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
""" | |
Sha-zoom, an implementation of the audio search algorithm described in the | |
Computerphile video 'How Shazam Works (Probably!)' published on YouTube on | |
March 15, 2021 by David Domminney Fowler. Requires FFMPEG. | |
""" | |
import os | |
import pickle | |
import logging | |
import argparse |
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
"""Generate a information thumbnail from a GPX file. | |
""" | |
import io | |
import re | |
import os | |
import math | |
import time | |
import uuid | |
import base64 |
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
# pylint: disable=E0401 | |
"""Musicater: music library formatter and validator. | |
""" | |
__version__ = "1.2.0" | |
__author__ = "Yohan Chalier" | |
__license__ = "MIT" | |
__email__ = "yohan@chalier.fr" | |
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
"""A small script that implements a Tri Peaks game as well as a Tri Peaks | |
approximate solver. The solver uses several heuristics to make moves, that a | |
human would be able to perform. | |
More information at https://en.wikipedia.org/Tri_Peaks_(game) | |
Solver improvement idea: take into account the probability of uncovering a card | |
that would increase the popping sequence length. | |
Architecture improvement idea: use a TriPeaksState class to store information |
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
"""Web scraper for http://inatheque.ina.fr/ | |
The official INA database is not accessible outside this unpracticle interface. | |
This scripts automatically gathers all results from a search query into a CSV | |
file, easy to process. | |
Usage: | |
python ina.py <search-query> | |
Install: | |
Download the Firefox driver for selenium at |
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
/* | |
* Main script for the controller | |
* @project Piano Cocktail | |
* @author Yohan Chalier | |
* @date 2019-09-19 | |
* | |
*/ | |
const int nMotors = 4; | |
const int motorHigh = LOW; |
NewerOlder