Skip to content

Instantly share code, notes, and snippets.

View Alexandro1112's full-sized avatar
🏠
Working from home

Alexandro1112

🏠
Working from home
View GitHub Profile
@Alexandro1112
Alexandro1112 / linux_terminal.py
Created January 9, 2023 05:47
linux version linux veersion
import subprocess
import sys
# ---------------------------------------------------------------------------------------------------------------------|
# INSTALL || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" OR
# REINSTALL || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# RUN || brew install brightness || brew doctor || brew install blueutil
__all__ = [
'set_brightness', 'enable_bluetooth', 'unplug_bluetooth', 'ValueBrightnessError'
import tkinter as tk
import customtkinter as tks
root = tk.Tk()
root.geometry('300x200')
root['bg'] = 'lightblue'
symbols = ['*', '/', '+', '-', '7', '8', '9', '0', '4', '5', '6', 'C', '1', '2', '3', '=']
c = 0
@Alexandro1112
Alexandro1112 / calculator.py
Created January 7, 2023 18:25
The easiest calculator on python
import tkinter as tk
import customtkinter as tks
root = tk.Tk()
root.geometry('300x200')
root['bg'] = 'lightblue'
symbols = ['*', '/', '+', '-', '7', '8', '9', '0', '4', '5', '6', 'C', '1', '2', '3', '=']
c = 0
import subprocess
lib = (
'/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"',
'brew doctor',
'brew install blueutil',
'brew install brightness'
)
for j in lib:
subprocess.getoutput(j)
from .dependency_connection import *
from .terminal import *
@Alexandro1112
Alexandro1112 / WeatherGuiApp.py
Created November 6, 2022 16:18
version 1.1.0
# encoding: utf-8
import json
import socket
import datetime
import ipaddress
from pyowm import OWM
from tqdm import tqdm
from math import ceil
from tkinter import *
from time import sleep
@Alexandro1112
Alexandro1112 / weather-mamager.py
Last active October 29, 2022 14:56
Ready version my weahter app.
# encoding: utf-8
import datetime
from pyowm import OWM
from tqdm import tqdm
from math import ceil
from tkinter import *
from time import sleep
from warnings import *
from requests import get
from pprint import pprint
@Alexandro1112
Alexandro1112 / weather.meneger.py
Created October 1, 2022 16:01
Awsome wather meneger in Tkinter window~!
# encoding: utf-8
import time
from tkinter import *
import pyowm
from pyowm.commons import exceptions
tk = Tk('Weather-Meneger')
while True:
@Alexandro1112
Alexandro1112 / city.csv
Created September 28, 2022 13:32
cities for chat bot telgram
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
4400;3159;4312;Москва
4313;3159;4312;Абрамцево
4314;3159;4312;Алабино
4315;3159;4312;Апрелевка
4316;3159;4312;Архангельское
4317;3159;4312;Ашитково
7592923;3159;4312;Байконур
4318;3159;4312;Бакшеево
4319;3159;4312;Балашиха
4320;3159;4312;Барыбино
@Alexandro1112
Alexandro1112 / movies.json
Created September 28, 2022 13:29
movies for chat bot telegram
[ {
"name": "Король Лев \n| Львенок Симба бросает вызов дяде-убийце. Величественный саундтрек, рисованная анимация и шекспировский размах",
"genre": ["Мультфильм", "Семейный", "Драма", "+0"],
"year": "1994 +0",
"poster": "images/Король лев.jpg"
},
{
"name": "Душа \n| Джазмен хочет сбежать с того света на концерт. Фантазия о призвании и важных мелочах жизни от автора «Вверх»",
"genre": ["Семейный", "Мультфильм", "Комедия", "Приключения","+6"],
"year": "2020 +6",