Skip to content

Instantly share code, notes, and snippets.

@atodev
atodev / load key
Last active April 20, 2023 00:32
[environ]
import os
from apikey import apikey
os.environ['OPEN_API_KEY'] = apikey
@atodev
atodev / lil
Last active April 11, 2023 21:55
[Linkedin learning]
https://saleshub.app.bigtincan.com/story/1234158433
Click this activation link: https://lnkd.in/gMaQSM2K
https://www.linkedin.com/learning/machine-learning-with-python-foundations/using-the-exercise-files?autoSkip=true&autoplay=true&resume=false&u=111978458
msoft
https://www.linkedin.com/learning/paths/become-a-data-analyst?u=111978458
https://www.linkedin.com/learning/learning-python-14393370/learning-python?autoplay=true&contextUrn=urn%3Ali%3AlyndaLearningPath%3A5ebaefdc498e440b07b53ea1&u=111978458
aws
@atodev
atodev / envs
Last active May 28, 2023 20:49
[Conda]
conda activate py3.9
if it doesn't start
conda init bash'
cloes and repopen the terminal
try activate again
@atodev
atodev / python library
Last active April 7, 2023 15:43
[Libray]
https://medium.com/analytics-vidhya/how-to-create-a-python-library-7d5aea80cc3f
https://towardsdatascience.com/deep-dive-create-and-publish-your-first-python-library-f7f618719e14
https://packaging.python.org/en/latest/tutorials/packaging-projects/
https://code.tutsplus.com/tutorials/how-to-write-package-and-distribute-a-library-in-python--cms-28693
@atodev
atodev / vercel
Created April 3, 2023 21:57
[Vercel]
https://vercel.com/
import matplotlib.pyplot as plt
# Define the color scheme based on the values
colors = ['red' if x < 15 else 'Yellow' if x >= 15 and x < 25 else 'green' for x in df1['TrustScore']]
# Create the bar chart with the defined colors
plt.bar(range(len(df1)), df1['TrustScore'], color=colors)
# Add labels and titles to the chart
plt.xticks(range(len(df1)), df1.index)
plt.xlabel('Index')
vite
https://www.youtube.com/watch?v=89NJdbYTgJ8
@atodev
atodev / tutes
Created March 21, 2023 15:17
[FLUTTER]
https://www.youtube.com/watch?v=ss5_6e9emZY
-- first get all rows with multiple recipients and convert them to one per line:
----------------------------------------------
[email protected] [email protected],[email protected],[email protected],[email protected],[email protected],[email protected] inbound 1670537679
create a python script to replace that line with
[email protected] [email protected] inbound 1670537679
[email protected] [email protected] inbound 1670537679
[email protected] [email protected] inbound 1670537679
[email protected] [email protected] inbound 1670537679
[email protected] [email protected] inbound 1670537679
@atodev
atodev / chatbot
Created March 16, 2023 22:31
CHAT GPT
chatbot
https://www.youtube.com/watch?v=EE1Y2enHrcU
llama_index for context