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
//Copy-pasted from https://github.com/MrMDavidson/code-samples, http://csharpexamples.com/fast-image-processing-c/ and https://stackoverflow.com/questions/30103425/find-dominant-color-in-an-image | |
//Modifications | |
//*The redimension size of the image is 1024 since is fast enough and not too heavy | |
//*Before calculating the means I add the most used color the number of times it appeared to bias the result more to that color. | |
//*The parameter of threshold in 25 gived good results in my case | |
//*The k in the calculated method is not used anymore | |
//*It inserts at most 4 clusters from deterministic points to always have the same result | |
//Note: A lot of the code might be expanded, it was extracted from the decompiler | |
private unsafe static Color GetDominantColour(Image originalImage) |
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 tinytag import TinyTag | |
from pathlib import Path | |
from spotipy.oauth2 import SpotifyOAuth | |
import json | |
import os | |
import spotipy | |
import re | |
# Input | |
print("Enter your username:") |
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
#include<iostream> | |
#include<vector> | |
#include<map> | |
#define ll long long | |
#define v vector | |
using namespace std; | |
int main(){ | |
ll lim = 1e9; | |
v<int> vec; | |
map<int, bool> mp; |
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
##################ddd | |
libmotif-common | |
libxm4 | |
##################gdb | |
libbabeltrace1 | |
libboost-regex1.74.0 | |
libdebuginfod-common | |
libdebuginfod1 | |
libipt2 | |
libsource-highlight-common |