Skip to content

Instantly share code, notes, and snippets.

View vdesmond's full-sized avatar
🎯
locked in

vignesh vdesmond

🎯
locked in
View GitHub Profile
import os
import time
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from attractors_old import Attractor
from attractors import SolverRegistry, SystemRegistry, integrate_system
import os
import time
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from attractors_old import Attractor
from attractors import SolverRegistry, SystemRegistry, integrate_system
@vdesmond
vdesmond / lang_dist_discord.py
Created April 7, 2022 07:29
Small script to analyse the channel language distribution content (use data from discordchatexporter)
from operator import imod
import pandas as pd
import cld3
import swifter
import matplotlib.pyplot as plt
URL_REGEX = r"\b(?:https?://|www\.)[a-z0-9-]+(\.[a-z0-9-]+)+(?:[/?].*)?"
EMOJI_REGEX = r"(<a?)?:\w+:(\d{18}>)?"
WORDCOUNT = 4
CLD3_CONF=0.95
@vdesmond
vdesmond / img2graph.py
Last active December 21, 2021 05:54
Image of graph to x,y coordinates (graph OCR)
import cv2
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
from fil_finder import FilFinder2D
import astropy.units as u
import pandas as pd
from numpy.polynomial import Polynomial