Skip to content

Instantly share code, notes, and snippets.

View misrori's full-sized avatar

Mihály Orsós misrori

View GitHub Profile
@misrori
misrori / app.py
Created January 13, 2026 12:14
titanic
import streamlit as st
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
# --- 1. Page Configuration ---
st.set_page_config(page_title="Titanic Dashboard", page_icon="🚢", layout="wide")
# --- 2. Load Data ---
@st.cache_data
@misrori
misrori / demo_delta.py
Last active November 14, 2025 07:52
dbtt
from delta.tables import DeltaTable
# === Variables for catalog & schema ===
m_catalog = "mihaly-orsos-catalog"
m_schema = "data"
m_table = f"{m_catalog}.{m_schema}.delta_demo"
m_table_quoted = f"`{m_catalog}`.`{m_schema}`.`delta_demo`"
# === 1) Create initial Delta table ===
data = [("a", 10), ("b", 20), ("c", 30)]
@misrori
misrori / rabit.py
Created March 22, 2025 10:51
rabit
import streamlit as st
import pandas as pd
import requests
from bs4 import BeautifulSoup
import plotly.express as px
import io
st.set_page_config(
page_title="RabbitEars Data Explorer",
page_icon="📺",
@misrori
misrori / just_next.py
Last active January 7, 2025 13:14
streamlit
import streamlit as st
import pandas as pd
def update_index():
st.session_state.current_index = int(df[df['Display Name'] == st.session_state.sstock].index[0])
# Sample data
data = {
@misrori
misrori / chanel_id
Last active December 3, 2024 15:51
slack
# get channel id-s
response = client.conversations_list()
# Print channel names and IDs
for channel in response["channels"]:
print(f"Channel Name: {channel['name']}, Channel ID: {channel['id']}")
top200['DVD'] = top200['DVD'].str.replace('°', '')
top200['DVD'] = pd.to_datetime(top200['DVD'], format='%B/%Y/%d', errors='coerce')
top50['DVD'] = pd.to_datetime(top50['DVD'], format='%d %b %Y', errors='coerce')
print('hello2')
print("hello CEU")
@misrori
misrori / plotly_chart_studio.py
Created November 26, 2024 08:46
How to post a plotly to chart studio
!pip install goldhand chart-studio
from goldhand import *
import chart_studio
import chart_studio.plotly as py
username=''
api_key=''
chart_studio.tools.set_credentials_file(username=username, api_key=api_key)
!pip install pyTelegramBotAPI
import os
import telebot
#BOT_TOKEN = os.environ.get('BOT_TOKEN')
BOT_TOKEN = "80..."
bot = telebot.TeleBot(BOT_TOKEN)