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 / catDetectFace.py
Created March 21, 2023 16:37
Opencv script Opencv script
import os.path
import numpy
import keyboard
import cv2
count = 0
img = cv2.VideoCapture(0)
#!/Users/steve/.pyenv/shims/python
# Thing to make new desktop backgrounds from my folder of research images
# On Linux I made this actually write to the desktop directly using feh, however, that's not really possible on a Mac. So I had it create a folder of graphics and then have the desktop settings choose from that directory at random.
from PIL import Image, ImageDraw
import os, random
from subprocess import call
## Colors from the Nord color scheme,
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/Users/admin/PycharmProjects/Chat\ Bot\ FINal/colors.css"/>
<title>Рецепт прикольных блинов</title>
</head>
<link rel="shortcut icon" href="venchic.ico">
@Alexandro1112
Alexandro1112 / exceptions.py
Created January 26, 2023 08:13
exceptions for pyTerminalproccesosx
"""
|---------------------|
|Individual exceptions for methods|
|---------------------|
"""
class ApplicationNameError(NameError):
"""
App with pointed out name not exist.
"""

Hi there, I'm Aleksandr

Python-Developer,
from Russia 🇷🇺.
In the free time adore learn history, explore physic.Strive for the best! 🔝

@Alexandro1112
Alexandro1112 / cmds.sh
Created January 22, 2023 21:48
Commands
# Main commands in library (notifies)
terminal-notifier -message "Hello, this is my message" -title "Message Title"
osascript -e 'display notification "Notification text" with title "Notification Title" subtitle "Notification sub-title" sound name "Pop"'
[submodule "blueutil"]
path = blueutil
url = https://github.com/toy/blueutil
[submodule "brightness"]
path = brightness
url = https://github.com/nriley/brightness
[submodule "brew"]
path = brew
url = https://github.com/Homebrew/brew
@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